2022-11-05 16:58:44 +04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#include "core/hle/service/am/am.h"
|
|
|
|
#include "core/hle/service/am/applet_ae.h"
|
|
|
|
#include "core/hle/service/am/applet_oe.h"
|
|
|
|
#include "core/hle/service/am/idle.h"
|
|
|
|
#include "core/hle/service/am/omm.h"
|
|
|
|
#include "core/hle/service/am/spsm.h"
|
2023-02-19 08:22:05 +04:00
|
|
|
#include "core/hle/service/server_manager.h"
|
2022-11-05 16:58:44 +04:00
|
|
|
|
|
|
|
namespace Service::AM {
|
|
|
|
|
2023-03-04 12:58:45 +04:00
|
|
|
void LoopProcess(Nvnflinger::Nvnflinger& nvnflinger, Core::System& system) {
|
2023-02-19 08:22:05 +04:00
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
|
|
|
|
2024-01-26 21:45:02 +04:00
|
|
|
server_manager->RegisterNamedService("appletAE",
|
|
|
|
std::make_shared<AppletAE>(nvnflinger, system));
|
|
|
|
server_manager->RegisterNamedService("appletOE",
|
|
|
|
std::make_shared<AppletOE>(nvnflinger, system));
|
2023-02-19 08:22:05 +04: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));
|
2022-11-05 16:58:44 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Service::AM
|