diff options
author | Liam <byteslice@airmail.cc> | 2024-02-14 05:36:06 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-14 18:03:32 +0100 |
commit | 2e8c0e9247bfcb5cdd0f4235bda5ee6f58b16c14 (patch) | |
tree | 7c28b4f1b8d7bbbb7b363d5569d7dd70b34d146e /src/core/hle/service/vi/manager_root_service.cpp | |
parent | vi: extract types (diff) | |
download | yuzu-2e8c0e9247bfcb5cdd0f4235bda5ee6f58b16c14.tar yuzu-2e8c0e9247bfcb5cdd0f4235bda5ee6f58b16c14.tar.gz yuzu-2e8c0e9247bfcb5cdd0f4235bda5ee6f58b16c14.tar.bz2 yuzu-2e8c0e9247bfcb5cdd0f4235bda5ee6f58b16c14.tar.lz yuzu-2e8c0e9247bfcb5cdd0f4235bda5ee6f58b16c14.tar.xz yuzu-2e8c0e9247bfcb5cdd0f4235bda5ee6f58b16c14.tar.zst yuzu-2e8c0e9247bfcb5cdd0f4235bda5ee6f58b16c14.zip |
Diffstat (limited to 'src/core/hle/service/vi/manager_root_service.cpp')
-rw-r--r-- | src/core/hle/service/vi/manager_root_service.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/manager_root_service.cpp b/src/core/hle/service/vi/manager_root_service.cpp new file mode 100644 index 000000000..3ab88111d --- /dev/null +++ b/src/core/hle/service/vi/manager_root_service.cpp @@ -0,0 +1,35 @@ +// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "core/hle/service/vi/manager_root_service.h" +#include "core/hle/service/vi/vi.h" +#include "core/hle/service/vi/vi_types.h" + +namespace Service::VI { + +IManagerRootService::IManagerRootService( + Core::System& system_, Nvnflinger::Nvnflinger& nv_flinger_, + Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_) + : ServiceFramework{system_, "vi:m"}, nv_flinger{nv_flinger_}, + hos_binder_driver_server{hos_binder_driver_server_} { + static const FunctionInfo functions[] = { + {2, &IManagerRootService::GetDisplayService, "GetDisplayService"}, + {3, nullptr, "GetDisplayServiceWithProxyNameExchange"}, + {100, nullptr, "PrepareFatal"}, + {101, nullptr, "ShowFatal"}, + {102, nullptr, "DrawFatalRectangle"}, + {103, nullptr, "DrawFatalText32"}, + }; + RegisterHandlers(functions); +} + +IManagerRootService::~IManagerRootService() = default; + +void IManagerRootService::GetDisplayService(HLERequestContext& ctx) { + LOG_DEBUG(Service_VI, "called"); + + detail::GetDisplayServiceImpl(ctx, system, nv_flinger, hos_binder_driver_server, + Permission::Manager); +} + +} // namespace Service::VI |