2022-11-05 16:58:44 +04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2023-02-19 08:22:05 +04:00
|
|
|
#include "core/hle/service/server_manager.h"
|
2024-02-14 23:17:22 +04:00
|
|
|
#include "core/hle/service/vi/application_display_service.h"
|
|
|
|
#include "core/hle/service/vi/application_root_service.h"
|
|
|
|
#include "core/hle/service/vi/manager_root_service.h"
|
|
|
|
#include "core/hle/service/vi/system_root_service.h"
|
2022-11-05 16:58:44 +04:00
|
|
|
#include "core/hle/service/vi/vi.h"
|
|
|
|
|
|
|
|
namespace Service::VI {
|
|
|
|
|
2024-01-10 05:20:16 +04:00
|
|
|
void LoopProcess(Core::System& system, Nvnflinger::Nvnflinger& nvnflinger,
|
2023-03-04 12:58:45 +04:00
|
|
|
Nvnflinger::HosBinderDriverServer& hos_binder_driver_server) {
|
2023-02-19 08:22:05 +04:00
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
|
|
|
|
2024-02-14 23:17:22 +04:00
|
|
|
server_manager->RegisterNamedService("vi:m", std::make_shared<IManagerRootService>(
|
|
|
|
system, nvnflinger, hos_binder_driver_server));
|
2023-02-19 08:22:05 +04:00
|
|
|
server_manager->RegisterNamedService(
|
2024-02-14 23:17:22 +04:00
|
|
|
"vi:s", std::make_shared<ISystemRootService>(system, nvnflinger, hos_binder_driver_server));
|
|
|
|
server_manager->RegisterNamedService("vi:u", std::make_shared<IApplicationRootService>(
|
|
|
|
system, nvnflinger, hos_binder_driver_server));
|
2023-02-19 08:22:05 +04:00
|
|
|
ServerManager::RunServer(std::move(server_manager));
|
2022-11-05 16:58:44 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Service::VI
|