2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-10-14 22:50:04 -04:00
|
|
|
|
|
|
|
#include "core/hle/service/am/am.h"
|
2024-03-03 13:02:50 +00:00
|
|
|
#include "core/hle/service/am/button_poller.h"
|
|
|
|
#include "core/hle/service/am/event_observer.h"
|
2024-02-11 18:26:32 -05:00
|
|
|
#include "core/hle/service/am/service/all_system_applet_proxies_service.h"
|
|
|
|
#include "core/hle/service/am/service/application_proxy_service.h"
|
2024-03-03 13:02:50 +00:00
|
|
|
#include "core/hle/service/am/window_system.h"
|
2023-02-18 16:26:48 -05:00
|
|
|
#include "core/hle/service/server_manager.h"
|
2017-10-14 22:50:04 -04:00
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
namespace Service::AM {
|
2017-10-14 22:50:04 -04:00
|
|
|
|
2024-02-14 11:39:42 -05:00
|
|
|
void LoopProcess(Core::System& system) {
|
2024-03-03 13:02:50 +00:00
|
|
|
WindowSystem window_system(system);
|
|
|
|
ButtonPoller button_poller(system, window_system);
|
|
|
|
EventObserver event_observer(system, window_system);
|
|
|
|
|
2023-02-18 16:26:48 -05:00
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
|
|
|
|
2024-03-03 13:02:50 +00:00
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
"appletAE", std::make_shared<IAllSystemAppletProxiesService>(system, window_system));
|
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
"appletOE", std::make_shared<IApplicationProxyService>(system, window_system));
|
2023-02-18 16:26:48 -05:00
|
|
|
ServerManager::RunServer(std::move(server_manager));
|
2017-10-14 22:50:04 -04:00
|
|
|
}
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
} // namespace Service::AM
|