Files
eden/src/core/hle/service/nvnflinger/nvnflinger.cpp
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
1.1 KiB
C++
Raw Normal View History

// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
#include "core/core.h"
2024-02-14 11:39:42 -05:00
#include "core/hle/service/nvnflinger/hos_binder_driver.h"
2023-02-19 15:05:34 -05:00
#include "core/hle/service/nvnflinger/hos_binder_driver_server.h"
#include "core/hle/service/nvnflinger/nvnflinger.h"
#include "core/hle/service/nvnflinger/surface_flinger.h"
2024-02-14 11:39:42 -05:00
#include "core/hle/service/server_manager.h"
#include "core/hle/service/sm/sm.h"
2023-02-19 15:05:34 -05:00
namespace Service::Nvnflinger {
2024-02-14 11:39:42 -05:00
void LoopProcess(Core::System& system) {
const auto binder_server = std::make_shared<HosBinderDriverServer>();
const auto surface_flinger = std::make_shared<SurfaceFlinger>(system, *binder_server);
2024-02-14 11:39:42 -05:00
auto server_manager = std::make_unique<ServerManager>(system);
server_manager->RegisterNamedService(
"dispdrv", std::make_shared<IHOSBinderDriver>(system, binder_server, surface_flinger));
ServerManager::RunServer(std::move(server_manager));
}
2023-02-19 15:05:34 -05:00
} // namespace Service::Nvnflinger