2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-01-07 21:27:58 -05:00
|
|
|
|
2024-02-14 11:39:42 -05:00
|
|
|
#include "core/core.h"
|
|
|
|
|
#include "core/hle/service/nvnflinger/hos_binder_driver.h"
|
2023-02-18 16:26:48 -05:00
|
|
|
#include "core/hle/service/server_manager.h"
|
2024-02-14 11:39:42 -05:00
|
|
|
#include "core/hle/service/sm/sm.h"
|
2024-02-13 23:36:06 -05: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"
|
2018-01-07 21:27:58 -05:00
|
|
|
#include "core/hle/service/vi/vi.h"
|
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
namespace Service::VI {
|
2018-01-07 21:27:58 -05:00
|
|
|
|
2024-02-14 11:39:42 -05:00
|
|
|
void LoopProcess(Core::System& system) {
|
|
|
|
|
const auto binder_service =
|
|
|
|
|
system.ServiceManager().GetService<Nvnflinger::IHOSBinderDriver>("dispdrv", true);
|
2023-02-18 16:26:48 -05:00
|
|
|
auto server_manager = std::make_unique<ServerManager>(system);
|
|
|
|
|
|
|
|
|
|
server_manager->RegisterNamedService(
|
2024-02-14 11:39:42 -05:00
|
|
|
"vi:m", std::make_shared<IManagerRootService>(system, binder_service));
|
|
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
|
"vi:s", std::make_shared<ISystemRootService>(system, binder_service));
|
|
|
|
|
server_manager->RegisterNamedService(
|
|
|
|
|
"vi:u", std::make_shared<IApplicationRootService>(system, binder_service));
|
2023-02-18 16:26:48 -05:00
|
|
|
ServerManager::RunServer(std::move(server_manager));
|
2018-01-07 21:27:58 -05:00
|
|
|
}
|
|
|
|
|
|
2018-04-19 21:41:44 -04:00
|
|
|
} // namespace Service::VI
|