summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-15 08:56:53 +0100
committerGitHub <noreply@github.com>2018-01-15 08:56:53 +0100
commit22347e884482d3e598d7c753665b893e2c3d1395 (patch)
tree952e9c3ec37de6ff0fb7be47b20e7921b8f2de53
parentMerge pull request #13 from hpr/fno-new-ttp-matching (diff)
parentvi: Add IManagerDisplayService::CloseDisplay function (diff)
downloadyuzu-22347e884482d3e598d7c753665b893e2c3d1395.tar
yuzu-22347e884482d3e598d7c753665b893e2c3d1395.tar.gz
yuzu-22347e884482d3e598d7c753665b893e2c3d1395.tar.bz2
yuzu-22347e884482d3e598d7c753665b893e2c3d1395.tar.lz
yuzu-22347e884482d3e598d7c753665b893e2c3d1395.tar.xz
yuzu-22347e884482d3e598d7c753665b893e2c3d1395.tar.zst
yuzu-22347e884482d3e598d7c753665b893e2c3d1395.zip
-rw-r--r--src/core/hle/service/vi/vi.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index b35a7a377..93ebbe75f 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -494,6 +494,7 @@ public:
IManagerDisplayService(std::shared_ptr<NVFlinger> nv_flinger)
: ServiceFramework("IManagerDisplayService"), nv_flinger(std::move(nv_flinger)) {
static const FunctionInfo functions[] = {
+ {1020, &IManagerDisplayService::CloseDisplay, "CloseDisplay"},
{1102, nullptr, "GetDisplayResolution"},
{2010, &IManagerDisplayService::CreateManagedLayer, "CreateManagedLayer"},
{6000, &IManagerDisplayService::AddToLayerStack, "AddToLayerStack"},
@@ -503,6 +504,15 @@ public:
~IManagerDisplayService() = default;
private:
+ void CloseDisplay(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service, "(STUBBED) called");
+ IPC::RequestParser rp{ctx};
+ u64 display = rp.Pop<u64>();
+
+ IPC::RequestBuilder rb = rp.MakeBuilder(2, 0, 0, 0);
+ rb.Push(RESULT_SUCCESS);
+ }
+
void CreateManagedLayer(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service, "(STUBBED) called");
IPC::RequestParser rp{ctx};