blob: 2ea64f5d3246ab6c46a6bc3ed9a950d4031cd948 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#include "core/core.h"
#include "core/hle/service/server_manager.h"
#include "core/hle/service/vi/application_root_service.h"
#include "core/hle/service/vi/container.h"
#include "core/hle/service/vi/manager_root_service.h"
#include "core/hle/service/vi/system_root_service.h"
#include "core/hle/service/vi/vi.h"
namespace Service::VI {
void LoopProcess(Core::System& system, std::stop_token token) {
const auto container = std::make_shared<Container>(system);
auto server_manager = std::make_unique<ServerManager>(system);
server_manager->RegisterNamedService("vi:m",
std::make_shared<IManagerRootService>(system, container));
server_manager->RegisterNamedService("vi:s",
std::make_shared<ISystemRootService>(system, container));
server_manager->RegisterNamedService(
"vi:u", std::make_shared<IApplicationRootService>(system, container));
std::stop_callback cb(token, [=] { container->OnTerminate(); });
ServerManager::RunServer(std::move(server_manager));
}
} // namespace Service::VI
|