2026-05-24 01:04:32 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
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
|
|
|
|
2020-11-08 15:49:45 -05:00
|
|
|
#include "core/core.h"
|
2017-10-14 22:50:04 -04:00
|
|
|
#include "core/hle/service/apm/apm.h"
|
2021-07-14 00:52:17 -04:00
|
|
|
#include "core/hle/service/apm/apm_interface.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::APM {
|
2017-10-14 22:50:04 -04:00
|
|
|
|
2018-09-10 21:20:52 -04:00
|
|
|
Module::Module() = default;
|
|
|
|
|
Module::~Module() = default;
|
|
|
|
|
|
2023-02-18 16:26:48 -05:00
|
|
|
void LoopProcess(Core::System& system) {
|
|
|
|
|
auto module = std::make_shared<Module>();
|
|
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
|
|
|
|
|
2026-05-24 01:04:32 +02:00
|
|
|
server_manager->RegisterNamedService("apm", std::make_shared<APM>(system, module, system.GetAPMController(), "apm"));
|
|
|
|
|
server_manager->RegisterNamedService("apm:am", std::make_shared<APM>(system, module, system.GetAPMController(), "apm:am"));
|
|
|
|
|
// Removed on [+8.0.0] but kept for compatibility
|
|
|
|
|
server_manager->RegisterNamedService("apm:p", std::make_shared<APM>(system, module, system.GetAPMController(), "apm:p"));
|
|
|
|
|
server_manager->RegisterNamedService("apm:sys", std::make_shared<APM_Sys>(system, system.GetAPMController()));
|
2023-02-18 16:26:48 -05:00
|
|
|
ServerManager::RunServer(std::move(server_manager));
|
2018-01-15 17:19:32 -05:00
|
|
|
}
|
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
} // namespace Service::APM
|