diff options
| author | 2019-01-02 21:34:12 -0500 | |
|---|---|---|
| committer | 2019-01-02 21:34:12 -0500 | |
| commit | 56a97647a3e5b0a2141589940c784221f9091b8c (patch) | |
| tree | 0a9643c9dba29cfeae95707908bed4580394a01f /src | |
| parent | Merge pull request #1942 from DarkLordZach/profile-select-game-boot (diff) | |
| parent | service/vi: Implement SetDisplayEnabled() (diff) | |
| download | yuzu-56a97647a3e5b0a2141589940c784221f9091b8c.tar.gz yuzu-56a97647a3e5b0a2141589940c784221f9091b8c.tar.xz yuzu-56a97647a3e5b0a2141589940c784221f9091b8c.zip | |
Merge pull request #1978 from lioncash/enabled
service/vi: Implement SetDisplayEnabled()
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/vi/vi.cpp | 11 |
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"}, |