diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-16 19:11:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-16 19:11:02 +0100 |
commit | 6e2678a42cb4a0ad02a7c8959621b0c98353c572 (patch) | |
tree | e1d71c4545dacdc7940c2a8b67ea534c6e52d58a /src/core/hle/service/vi/system_root_service.cpp | |
parent | Merge pull request #12996 from german77/settings-ipc (diff) | |
parent | vi: rewrite IApplicationDisplayService (diff) | |
download | yuzu-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/system_root_service.cpp')
-rw-r--r-- | src/core/hle/service/vi/system_root_service.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/system_root_service.cpp b/src/core/hle/service/vi/system_root_service.cpp new file mode 100644 index 000000000..8789b4cfb --- /dev/null +++ b/src/core/hle/service/vi/system_root_service.cpp @@ -0,0 +1,33 @@ +// 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/service_creator.h" +#include "core/hle/service/vi/system_root_service.h" +#include "core/hle/service/vi/vi.h" +#include "core/hle/service/vi/vi_types.h" + +namespace Service::VI { + +ISystemRootService::ISystemRootService(Core::System& system_, Nvnflinger::Nvnflinger& nvnflinger, + Nvnflinger::HosBinderDriverServer& hos_binder_driver_server) + : ServiceFramework{system_, "vi:s"}, m_nvnflinger{nvnflinger}, m_hos_binder_driver_server{ + hos_binder_driver_server} { + static const FunctionInfo functions[] = { + {1, C<&ISystemRootService::GetDisplayService>, "GetDisplayService"}, + {3, nullptr, "GetDisplayServiceWithProxyNameExchange"}, + }; + RegisterHandlers(functions); +} + +ISystemRootService::~ISystemRootService() = default; + +Result ISystemRootService::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::System, policy)); +} + +} // namespace Service::VI |