aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authoryuzubot <[email protected]>2024-03-04 00:57:21 +0000
committeryuzubot <[email protected]>2024-03-04 00:57:21 +0000
commitadc597a7995508270628dbfc05afdf838bdc7cd6 (patch)
treec8c9b83baa57002efe2e5527a45135541c8bb836 /src/core/hle/service/am/am.cpp
parent276ceb26d0c58a00a0e65e3bf4d9c4371428f82d (diff)
downloadyuzu-android-adc597a7995508270628dbfc05afdf838bdc7cd6.tar.gz
yuzu-android-adc597a7995508270628dbfc05afdf838bdc7cd6.zip
Merge yuzu-emu#13018
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 8c4e14f08..2ef393439 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -2,19 +2,26 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "core/hle/service/am/am.h"
+#include "core/hle/service/am/button_poller.h"
+#include "core/hle/service/am/event_observer.h"
#include "core/hle/service/am/service/all_system_applet_proxies_service.h"
#include "core/hle/service/am/service/application_proxy_service.h"
+#include "core/hle/service/am/window_system.h"
#include "core/hle/service/server_manager.h"
namespace Service::AM {
void LoopProcess(Core::System& system) {
+ WindowSystem window_system(system);
+ ButtonPoller button_poller(system, window_system);
+ EventObserver event_observer(system, window_system);
+
auto server_manager = std::make_unique<ServerManager>(system);
- server_manager->RegisterNamedService("appletAE",
- std::make_shared<IAllSystemAppletProxiesService>(system));
- server_manager->RegisterNamedService("appletOE",
- std::make_shared<IApplicationProxyService>(system));
+ server_manager->RegisterNamedService(
+ "appletAE", std::make_shared<IAllSystemAppletProxiesService>(system, window_system));
+ server_manager->RegisterNamedService(
+ "appletOE", std::make_shared<IApplicationProxyService>(system, window_system));
ServerManager::RunServer(std::move(server_manager));
}