yuzu/src/core/hle/service/am/am.cpp

22 lines
872 B
C++
Raw Normal View History

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"
2024-02-13 07:52:59 +04:00
#include "core/hle/service/am/service/all_system_applet_proxies_service.h"
#include "core/hle/service/am/service/application_proxy_service.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-02-13 07:52:59 +04:00
server_manager->RegisterNamedService(
"appletAE", std::make_shared<IAllSystemAppletProxiesService>(system, nvnflinger));
server_manager->RegisterNamedService(
"appletOE", std::make_shared<IApplicationProxyService>(system, nvnflinger));
2023-02-19 08:22:05 +04:00
ServerManager::RunServer(std::move(server_manager));
2022-11-05 16:58:44 +04:00
}
} // namespace Service::AM