summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-01-02 20:45:40 -0500
committerGravatar Lioncash2019-01-02 20:48:04 -0500
commitceeff8ebfd43b2dcdde1507bdd06adf47a17584a (patch)
tree10044d0b6372cddf60efbc5844a209edb2539292 /src
parentMerge pull request #1977 from lioncash/vi-log (diff)
downloadyuzu-ceeff8ebfd43b2dcdde1507bdd06adf47a17584a.tar.gz
yuzu-ceeff8ebfd43b2dcdde1507bdd06adf47a17584a.tar.xz
yuzu-ceeff8ebfd43b2dcdde1507bdd06adf47a17584a.zip
service/vi: Implement SetDisplayEnabled()
This IPC command is simply a stub inside the actual service itself, and just returns a successful error code regardless of input. This is likely only retained in the service interface to not break older code that relied upon it succeeding in some way.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/vi/vi.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp
index 5c21ac703..ecfec9995 100644
--- a/src/core/hle/service/vi/vi.cpp
+++ b/src/core/hle/service/vi/vi.cpp
@@ -921,6 +921,15 @@ private:
921 rb.Push(RESULT_SUCCESS); 921 rb.Push(RESULT_SUCCESS);
922 } 922 }
923 923
924 // This literally does nothing internally in the actual service itself,
925 // and just returns a successful result code regardless of the input.
926 void SetDisplayEnabled(Kernel::HLERequestContext& ctx) {
927 LOG_DEBUG(Service_VI, "called.");
928
929 IPC::ResponseBuilder rb{ctx, 2};
930 rb.Push(RESULT_SUCCESS);
931 }
932
924 void GetDisplayResolution(Kernel::HLERequestContext& ctx) { 933 void GetDisplayResolution(Kernel::HLERequestContext& ctx) {
925 IPC::RequestParser rp{ctx}; 934 IPC::RequestParser rp{ctx};
926 const u64 display_id = rp.Pop<u64>(); 935 const u64 display_id = rp.Pop<u64>();
@@ -1096,7 +1105,7 @@ IApplicationDisplayService::IApplicationDisplayService(
1096 {1010, &IApplicationDisplayService::OpenDisplay, "OpenDisplay"}, 1105 {1010, &IApplicationDisplayService::OpenDisplay, "OpenDisplay"},
1097 {1011, nullptr, "OpenDefaultDisplay"}, 1106 {1011, nullptr, "OpenDefaultDisplay"},
1098 {1020, &IApplicationDisplayService::CloseDisplay, "CloseDisplay"}, 1107 {1020, &IApplicationDisplayService::CloseDisplay, "CloseDisplay"},
1099 {1101, nullptr, "SetDisplayEnabled"}, 1108 {1101, &IApplicationDisplayService::SetDisplayEnabled, "SetDisplayEnabled"},
1100 {1102, &IApplicationDisplayService::GetDisplayResolution, "GetDisplayResolution"}, 1109 {1102, &IApplicationDisplayService::GetDisplayResolution, "GetDisplayResolution"},
1101 {2020, &IApplicationDisplayService::OpenLayer, "OpenLayer"}, 1110 {2020, &IApplicationDisplayService::OpenLayer, "OpenLayer"},
1102 {2021, nullptr, "CloseLayer"}, 1111 {2021, nullptr, "CloseLayer"},