diff options
author | Liam <byteslice@airmail.cc> | 2024-02-14 05:53:56 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-14 18:03:32 +0100 |
commit | c448001d4766a4959b4c1468b5a9de6dfe3d9bc4 (patch) | |
tree | e0c35c83cda5b104faa7c8f3757fbe28fe8b3f36 /src/core/hle/service/vi/manager_root_service.cpp | |
parent | vi: split into implementation files (diff) | |
download | yuzu-c448001d4766a4959b4c1468b5a9de6dfe3d9bc4.tar yuzu-c448001d4766a4959b4c1468b5a9de6dfe3d9bc4.tar.gz yuzu-c448001d4766a4959b4c1468b5a9de6dfe3d9bc4.tar.bz2 yuzu-c448001d4766a4959b4c1468b5a9de6dfe3d9bc4.tar.lz yuzu-c448001d4766a4959b4c1468b5a9de6dfe3d9bc4.tar.xz yuzu-c448001d4766a4959b4c1468b5a9de6dfe3d9bc4.tar.zst yuzu-c448001d4766a4959b4c1468b5a9de6dfe3d9bc4.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 | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/core/hle/service/vi/manager_root_service.cpp b/src/core/hle/service/vi/manager_root_service.cpp index 3ab88111d..a7eee4f04 100644 --- a/src/core/hle/service/vi/manager_root_service.cpp +++ b/src/core/hle/service/vi/manager_root_service.cpp @@ -1,19 +1,22 @@ // 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& nv_flinger_, - Nvnflinger::HosBinderDriverServer& hos_binder_driver_server_) - : ServiceFramework{system_, "vi:m"}, nv_flinger{nv_flinger_}, - hos_binder_driver_server{hos_binder_driver_server_} { + 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, &IManagerRootService::GetDisplayService, "GetDisplayService"}, + {2, C<&IManagerRootService::GetDisplayService>, "GetDisplayService"}, {3, nullptr, "GetDisplayServiceWithProxyNameExchange"}, {100, nullptr, "PrepareFatal"}, {101, nullptr, "ShowFatal"}, @@ -25,11 +28,11 @@ IManagerRootService::IManagerRootService( IManagerRootService::~IManagerRootService() = default; -void IManagerRootService::GetDisplayService(HLERequestContext& ctx) { +Result IManagerRootService::GetDisplayService( + Out<SharedPointer<IApplicationDisplayService>> out_application_display_service, Policy policy) { LOG_DEBUG(Service_VI, "called"); - - detail::GetDisplayServiceImpl(ctx, system, nv_flinger, hos_binder_driver_server, - Permission::Manager); + R_RETURN(GetApplicationDisplayService(out_application_display_service, system, m_nvnflinger, + m_hos_binder_driver_server, Permission::Manager, policy)); } } // namespace Service::VI |