summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-01-03 03:34:12 +0100
committerGitHub <noreply@github.com>2019-01-03 03:34:12 +0100
commit56a97647a3e5b0a2141589940c784221f9091b8c (patch)
tree0a9643c9dba29cfeae95707908bed4580394a01f /src/core
parentMerge pull request #1942 from DarkLordZach/profile-select-game-boot (diff)
parentservice/vi: Implement SetDisplayEnabled() (diff)
downloadyuzu-56a97647a3e5b0a2141589940c784221f9091b8c.tar
yuzu-56a97647a3e5b0a2141589940c784221f9091b8c.tar.gz
yuzu-56a97647a3e5b0a2141589940c784221f9091b8c.tar.bz2
yuzu-56a97647a3e5b0a2141589940c784221f9091b8c.tar.lz
yuzu-56a97647a3e5b0a2141589940c784221f9091b8c.tar.xz
yuzu-56a97647a3e5b0a2141589940c784221f9091b8c.tar.zst
yuzu-56a97647a3e5b0a2141589940c784221f9091b8c.zip
Diffstat (limited to 'src/core')
-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:
rb.Push(RESULT_SUCCESS);
}
+ // This literally does nothing internally in the actual service itself,
+ // and just returns a successful result code regardless of the input.
+ void SetDisplayEnabled(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_VI, "called.");
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ }
+
void GetDisplayResolution(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp{ctx};
const u64 display_id = rp.Pop<u64>();
@@ -1096,7 +1105,7 @@ IApplicationDisplayService::IApplicationDisplayService(
{1010, &IApplicationDisplayService::OpenDisplay, "OpenDisplay"},
{1011, nullptr, "OpenDefaultDisplay"},
{1020, &IApplicationDisplayService::CloseDisplay, "CloseDisplay"},
- {1101, nullptr, "SetDisplayEnabled"},
+ {1101, &IApplicationDisplayService::SetDisplayEnabled, "SetDisplayEnabled"},
{1102, &IApplicationDisplayService::GetDisplayResolution, "GetDisplayResolution"},
{2020, &IApplicationDisplayService::OpenLayer, "OpenLayer"},
{2021, nullptr, "CloseLayer"},