summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/am.cpp15
-rw-r--r--src/core/hle/service/am/am.h1
2 files changed, 14 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index cc978713b..d1bf13c89 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -607,7 +607,7 @@ ICommonStateGetter::ICommonStateGetter(Core::System& system,
607 {40, nullptr, "GetCradleFwVersion"}, 607 {40, nullptr, "GetCradleFwVersion"},
608 {50, nullptr, "IsVrModeEnabled"}, 608 {50, nullptr, "IsVrModeEnabled"},
609 {51, nullptr, "SetVrModeEnabled"}, 609 {51, nullptr, "SetVrModeEnabled"},
610 {52, nullptr, "SwitchLcdBacklight"}, 610 {52, &ICommonStateGetter::SetLcdBacklighOffEnabled, "SetLcdBacklighOffEnabled"},
611 {53, nullptr, "BeginVrModeEx"}, 611 {53, nullptr, "BeginVrModeEx"},
612 {54, nullptr, "EndVrModeEx"}, 612 {54, nullptr, "EndVrModeEx"},
613 {55, nullptr, "IsInControllerFirmwareUpdateSection"}, 613 {55, nullptr, "IsInControllerFirmwareUpdateSection"},
@@ -636,7 +636,6 @@ void ICommonStateGetter::GetBootMode(Kernel::HLERequestContext& ctx) {
636 636
637 IPC::ResponseBuilder rb{ctx, 3}; 637 IPC::ResponseBuilder rb{ctx, 3};
638 rb.Push(RESULT_SUCCESS); 638 rb.Push(RESULT_SUCCESS);
639
640 rb.Push<u8>(static_cast<u8>(Service::PM::SystemBootMode::Normal)); // Normal boot mode 639 rb.Push<u8>(static_cast<u8>(Service::PM::SystemBootMode::Normal)); // Normal boot mode
641} 640}
642 641
@@ -660,6 +659,7 @@ void ICommonStateGetter::ReceiveMessage(Kernel::HLERequestContext& ctx) {
660 rb.PushEnum<AppletMessageQueue::AppletMessage>(message); 659 rb.PushEnum<AppletMessageQueue::AppletMessage>(message);
661 return; 660 return;
662 } 661 }
662
663 rb.Push(RESULT_SUCCESS); 663 rb.Push(RESULT_SUCCESS);
664 rb.PushEnum<AppletMessageQueue::AppletMessage>(message); 664 rb.PushEnum<AppletMessageQueue::AppletMessage>(message);
665} 665}
@@ -672,6 +672,17 @@ void ICommonStateGetter::GetCurrentFocusState(Kernel::HLERequestContext& ctx) {
672 rb.Push(static_cast<u8>(FocusState::InFocus)); 672 rb.Push(static_cast<u8>(FocusState::InFocus));
673} 673}
674 674
675void ICommonStateGetter::SetLcdBacklighOffEnabled(Kernel::HLERequestContext& ctx) {
676 IPC::RequestParser rp{ctx};
677 const auto is_lcd_backlight_off_enabled = rp.Pop<bool>();
678
679 LOG_WARNING(Service_AM, "(STUBBED) called. is_lcd_backlight_off_enabled={}",
680 is_lcd_backlight_off_enabled);
681
682 IPC::ResponseBuilder rb{ctx, 2};
683 rb.Push(RESULT_SUCCESS);
684}
685
675void ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx) { 686void ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent(Kernel::HLERequestContext& ctx) {
676 LOG_DEBUG(Service_AM, "called"); 687 LOG_DEBUG(Service_AM, "called");
677 688
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index 0b9a4332d..0843de781 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -182,6 +182,7 @@ private:
182 void GetOperationMode(Kernel::HLERequestContext& ctx); 182 void GetOperationMode(Kernel::HLERequestContext& ctx);
183 void GetPerformanceMode(Kernel::HLERequestContext& ctx); 183 void GetPerformanceMode(Kernel::HLERequestContext& ctx);
184 void GetBootMode(Kernel::HLERequestContext& ctx); 184 void GetBootMode(Kernel::HLERequestContext& ctx);
185 void SetLcdBacklighOffEnabled(Kernel::HLERequestContext& ctx);
185 void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx); 186 void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx);
186 void SetCpuBoostMode(Kernel::HLERequestContext& ctx); 187 void SetCpuBoostMode(Kernel::HLERequestContext& ctx);
187 188