summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/am.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-17 06:18:35 +0200
committerGitHub <noreply@github.com>2018-08-17 06:18:35 +0200
commit224be09d662b0c744850637a34b76b689a28c88b (patch)
tree7f9e915d269d21484bdcb791f7b08ca29767ed8e /src/core/hle/service/am/am.cpp
parentMerge pull request #1019 from Subv/vertex_divisor (diff)
parentcorrect coding style (diff)
downloadyuzu-224be09d662b0c744850637a34b76b689a28c88b.tar
yuzu-224be09d662b0c744850637a34b76b689a28c88b.tar.gz
yuzu-224be09d662b0c744850637a34b76b689a28c88b.tar.bz2
yuzu-224be09d662b0c744850637a34b76b689a28c88b.tar.lz
yuzu-224be09d662b0c744850637a34b76b689a28c88b.tar.xz
yuzu-224be09d662b0c744850637a34b76b689a28c88b.tar.zst
yuzu-224be09d662b0c744850637a34b76b689a28c88b.zip
Diffstat (limited to 'src/core/hle/service/am/am.cpp')
-rw-r--r--src/core/hle/service/am/am.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 762763463..966602b31 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"
{52, nullptr, "SwitchLcdBacklight"},
{55, nullptr, "IsInControllerFirmwareUpdateSection"},
{60, nullptr, "GetDefaultDisplayResolution"},
- {61, nullptr, "GetDefaultDisplayResolutionChangeEvent"},
+ {61, &ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent,
+ "GetDefaultDisplayResolutionChangeEvent"},
{62, nullptr, "GetHdcpAuthenticationState"},
{63, nullptr, "GetHdcpAuthenticationStateChangeEvent"},
};
@@ -341,6 +342,16 @@ void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_AM, "(STUBBED) called");
}
+void ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx) {
+ event->Signal();
+
+ IPC::ResponseBuilder rb{ctx, 2, 1};
+ rb.Push(RESULT_SUCCESS);
+ rb.PushCopyObjects(event);
+
+ LOG_WARNING(Service_AM, "(STUBBED) called");
+}
+
void ICommonStateGetter::GetOperationMode(Kernel::HLERequestContext& ctx) {
const bool use_docked_mode{Settings::values.use_docked_mode};
IPC::ResponseBuilder rb{ctx, 3};