summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/vi/vi_m.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-13 15:01:54 +0100
committerGitHub <noreply@github.com>2019-03-13 15:01:54 +0100
commite8a21f52769ceef8aefdd06c54ca7026ab1a3d9a (patch)
tree67ae631eb4c09c0b7ebc2496b2a55adadcd33f22 /src/core/hle/service/vi/vi_m.cpp
parentMerge pull request #2231 from ReinUsesLisp/fixup-bias (diff)
parentservice/vi: Unstub GetDisplayService (diff)
downloadyuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.gz
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.bz2
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.lz
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.xz
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.zst
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.zip
Diffstat (limited to 'src/core/hle/service/vi/vi_m.cpp')
-rw-r--r--src/core/hle/service/vi/vi_m.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/hle/service/vi/vi_m.cpp b/src/core/hle/service/vi/vi_m.cpp
index 207c06b16..06070087f 100644
--- a/src/core/hle/service/vi/vi_m.cpp
+++ b/src/core/hle/service/vi/vi_m.cpp
@@ -2,12 +2,14 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include "common/logging/log.h"
+#include "core/hle/service/vi/vi.h"
#include "core/hle/service/vi/vi_m.h"
namespace Service::VI {
-VI_M::VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger)
- : Module::Interface(std::move(module), "vi:m", std::move(nv_flinger)) {
+VI_M::VI_M(std::shared_ptr<NVFlinger::NVFlinger> nv_flinger)
+ : ServiceFramework{"vi:m"}, nv_flinger{std::move(nv_flinger)} {
static const FunctionInfo functions[] = {
{2, &VI_M::GetDisplayService, "GetDisplayService"},
{3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
@@ -17,4 +19,10 @@ VI_M::VI_M(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger>
VI_M::~VI_M() = default;
+void VI_M::GetDisplayService(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_VI, "called");
+
+ detail::GetDisplayServiceImpl(ctx, nv_flinger, Permission::Manager);
+}
+
} // namespace Service::VI