diff options
| author | 2018-08-16 23:20:54 +0200 | |
|---|---|---|
| committer | 2018-08-16 23:25:54 +0200 | |
| commit | 928e78dced52fbb64e211f9034af45e110c267ac (patch) | |
| tree | 57535f4dcc3683c70a89aa195fb0670dce796c9e /src | |
| parent | Merge pull request #1085 from lioncash/namespace (diff) | |
| download | yuzu-928e78dced52fbb64e211f9034af45e110c267ac.tar.gz yuzu-928e78dced52fbb64e211f9034af45e110c267ac.tar.xz yuzu-928e78dced52fbb64e211f9034af45e110c267ac.zip | |
Implement GetDefaultDisplayResolutionChangeEvent
Require by Toki Tori and Toki Tori 2+
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 13 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.h | 1 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 762763463..a39030742 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -306,7 +306,8 @@ ICommonStateGetter::ICommonStateGetter() : ServiceFramework("ICommonStateGetter" | |||
| 306 | {52, nullptr, "SwitchLcdBacklight"}, | 306 | {52, nullptr, "SwitchLcdBacklight"}, |
| 307 | {55, nullptr, "IsInControllerFirmwareUpdateSection"}, | 307 | {55, nullptr, "IsInControllerFirmwareUpdateSection"}, |
| 308 | {60, nullptr, "GetDefaultDisplayResolution"}, | 308 | {60, nullptr, "GetDefaultDisplayResolution"}, |
| 309 | {61, nullptr, "GetDefaultDisplayResolutionChangeEvent"}, | 309 | {61, &ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent, |
| 310 | "GetDefaultDisplayResolutionChangeEvent"}, | ||
| 310 | {62, nullptr, "GetHdcpAuthenticationState"}, | 311 | {62, nullptr, "GetHdcpAuthenticationState"}, |
| 311 | {63, nullptr, "GetHdcpAuthenticationStateChangeEvent"}, | 312 | {63, nullptr, "GetHdcpAuthenticationStateChangeEvent"}, |
| 312 | }; | 313 | }; |
| @@ -341,6 +342,16 @@ void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) { | |||
| 341 | LOG_WARNING(Service_AM, "(STUBBED) called"); | 342 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 342 | } | 343 | } |
| 343 | 344 | ||
| 345 | void ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx) { | ||
| 346 | event->Signal(); | ||
| 347 | |||
| 348 | IPC::ResponseBuilder rb{ctx, 2, 1}; | ||
| 349 | rb.Push(RESULT_SUCCESS); | ||
| 350 | rb.PushCopyObjects(event); | ||
| 351 | |||
| 352 | LOG_WARNING(Service_AM, "(STUBBED) called"); | ||
| 353 | } | ||
| 354 | |||
| 344 | void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { | 355 | void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) { |
| 345 | const bool use_docked_mode{Settings::values.use_docked_mode}; | 356 | const bool use_docked_mode{Settings::values.use_docked_mode}; |
| 346 | IPC::ResponseBuilder rb{ctx, 3}; | 357 | IPC::ResponseBuilder rb{ctx, 3}; |
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index 862f338ac..5de1857d8 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h | |||
| @@ -110,6 +110,7 @@ private: | |||
| 110 | void GetEventHandle(Kernel::HLERequestContext& ctx); | 110 | void GetEventHandle(Kernel::HLERequestContext& ctx); |
| 111 | void ReceiveMessage(Kernel::HLERequestContext& ctx); | 111 | void ReceiveMessage(Kernel::HLERequestContext& ctx); |
| 112 | void GetCurrentFocusState(Kernel::HLERequestContext& ctx); | 112 | void GetCurrentFocusState(Kernel::HLERequestContext& ctx); |
| 113 | void GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx); | ||
| 113 | void GetOperationMode(Kernel::HLERequestContext& ctx); | 114 | void GetOperationMode(Kernel::HLERequestContext& ctx); |
| 114 | void GetPerformanceMode(Kernel::HLERequestContext& ctx); | 115 | void GetPerformanceMode(Kernel::HLERequestContext& ctx); |
| 115 | 116 | ||