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"
|
2018-02-03 00:03:40 +03:00
|
|
|
#include "core/hle/service/am/applet_ae.h"
|
2023-12-30 20:51:23 -05:00
|
|
|
#include "core/hle/service/am/applet_message_queue.h"
|
2017-10-14 22:50:04 -04:00
|
|
|
#include "core/hle/service/am/applet_oe.h"
|
2018-07-31 07:01:49 -04:00
|
|
|
#include "core/hle/service/am/idle.h"
|
|
|
|
#include "core/hle/service/am/omm.h"
|
|
|
|
#include "core/hle/service/am/spsm.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
|
|
|
|
2023-02-19 15:05:34 -05:00
|
|
|
void LoopProcess(Nvnflinger::Nvnflinger& nvnflinger, Core::System& system) {
|
2021-09-28 23:42:50 -04:00
|
|
|
auto message_queue = std::make_shared<AppletMessageQueue>(system);
|
2023-02-18 16:26:48 -05:00
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
|
|
|
|
|
|
|
server_manager->RegisterNamedService(
|
2023-02-19 15:05:34 -05:00
|
|
|
"appletAE", std::make_shared<AppletAE>(nvnflinger, message_queue, system));
|
2023-02-18 16:26:48 -05:00
|
|
|
server_manager->RegisterNamedService(
|
2023-02-19 15:05:34 -05:00
|
|
|
"appletOE", std::make_shared<AppletOE>(nvnflinger, message_queue, system));
|
2023-02-18 16:26:48 -05:00
|
|
|
server_manager->RegisterNamedService("idle:sys", std::make_shared<IdleSys>(system));
|
|
|
|
server_manager->RegisterNamedService("omm", std::make_shared<OMM>(system));
|
|
|
|
server_manager->RegisterNamedService("spsm", std::make_shared<SPSM>(system));
|
|
|
|
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
|