summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/manager_root_service.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-16 19:11:02 +0100
committerGitHub <noreply@github.com>2024-02-16 19:11:02 +0100
commit6e2678a42cb4a0ad02a7c8959621b0c98353c572 (patch)
treee1d71c4545dacdc7940c2a8b67ea534c6e52d58a /src/core/hle/service/vi/manager_root_service.cpp
parentMerge pull request #12996 from german77/settings-ipc (diff)
parentvi: rewrite IApplicationDisplayService (diff)
downloadyuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.gz
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.bz2
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.lz
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.xz
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.tar.zst
yuzu-6e2678a42cb4a0ad02a7c8959621b0c98353c572.zip
Diffstat (limited to 'src/core/hle/service/vi/manager_root_service.cpp')
-rw-r--r--src/core/hle/service/vi/manager_root_service.cpp38
1 files changed, 38 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..a7eee4f04
--- /dev/null
+++ b/src/core/hle/service/vi/manager_root_service.cpp
@@ -0,0 +1,38 @@
+// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/service/cmif_serialization.h"
+#include "core/hle/service/vi/application_display_service.h"
+#include "core/hle/service/vi/manager_root_service.h"
+#include "core/hle/service/vi/service_creator.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& nvnflinger,
+ Nvnflinger::HosBinderDriverServer& hos_binder_driver_server)
+ : ServiceFramework{system_, "vi:m"}, m_nvnflinger{nvnflinger}, m_hos_binder_driver_server{
+ hos_binder_driver_server} {
+ static const FunctionInfo functions[] = {
+ {2, C<&IManagerRootService::GetDisplayService>, "GetDisplayService"},
+ {3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
+ {100, nullptr, "PrepareFatal"},
+ {101, nullptr, "ShowFatal"},
+ {102, nullptr, "DrawFatalRectangle"},
+ {103, nullptr, "DrawFatalText32"},
+ };
+ RegisterHandlers(functions);
+}
+
+IManagerRootService::~IManagerRootService() = default;
+
+Result IManagerRootService::GetDisplayService(
+ Out<SharedPointer<IApplicationDisplayService>> out_application_display_service, Policy policy) {
+ LOG_DEBUG(Service_VI, "called");
+ R_RETURN(GetApplicationDisplayService(out_application_display_service, system, m_nvnflinger,
+ m_hos_binder_driver_server, Permission::Manager, policy));
+}
+
+} // namespace Service::VI