mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-08 05:19:59 +00:00
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.
This commit is contained in:
parent
7538fa4a67
commit
ceeff8ebfd
1 changed files with 10 additions and 1 deletions
|
@ -921,6 +921,15 @@ private:
|
||||||
rb.Push(RESULT_SUCCESS);
|
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) {
|
void GetDisplayResolution(Kernel::HLERequestContext& ctx) {
|
||||||
IPC::RequestParser rp{ctx};
|
IPC::RequestParser rp{ctx};
|
||||||
const u64 display_id = rp.Pop<u64>();
|
const u64 display_id = rp.Pop<u64>();
|
||||||
|
@ -1096,7 +1105,7 @@ IApplicationDisplayService::IApplicationDisplayService(
|
||||||
{1010, &IApplicationDisplayService::OpenDisplay, "OpenDisplay"},
|
{1010, &IApplicationDisplayService::OpenDisplay, "OpenDisplay"},
|
||||||
{1011, nullptr, "OpenDefaultDisplay"},
|
{1011, nullptr, "OpenDefaultDisplay"},
|
||||||
{1020, &IApplicationDisplayService::CloseDisplay, "CloseDisplay"},
|
{1020, &IApplicationDisplayService::CloseDisplay, "CloseDisplay"},
|
||||||
{1101, nullptr, "SetDisplayEnabled"},
|
{1101, &IApplicationDisplayService::SetDisplayEnabled, "SetDisplayEnabled"},
|
||||||
{1102, &IApplicationDisplayService::GetDisplayResolution, "GetDisplayResolution"},
|
{1102, &IApplicationDisplayService::GetDisplayResolution, "GetDisplayResolution"},
|
||||||
{2020, &IApplicationDisplayService::OpenLayer, "OpenLayer"},
|
{2020, &IApplicationDisplayService::OpenLayer, "OpenLayer"},
|
||||||
{2021, nullptr, "CloseLayer"},
|
{2021, nullptr, "CloseLayer"},
|
||||||
|
|
Loading…
Reference in a new issue