From 3e47e3f8091ba5559bb0e139bffe485a89966a50 Mon Sep 17 00:00:00 2001 From: JPikachu Date: Wed, 9 Apr 2025 23:28:11 +0100 Subject: [PATCH] Fix am stubs (again) If I had a nickle for everytime this happened... I'd have 3 nickles... but still weird it happened 3 times right? --- .../hle/service/am/service/common_state_getter.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/core/hle/service/am/service/common_state_getter.cpp b/src/core/hle/service/am/service/common_state_getter.cpp index d5ededc5e3..c445e5e776 100644 --- a/src/core/hle/service/am/service/common_state_getter.cpp +++ b/src/core/hle/service/am/service/common_state_getter.cpp @@ -140,6 +140,19 @@ Result ICommonStateGetter::GetDefaultDisplayResolutionChangeEvent( R_SUCCEED(); } +Result ICommonStateGetter::GetHdcpAuthenticationState(Out out_state) { + LOG_DEBUG(Service_AM, "called"); + *out_state = 1; + R_SUCCEED(); +} + +Result ICommonStateGetter::GetHdcpAuthenticationStateChangeEvent( + OutCopyHandle out_event) { + LOG_DEBUG(Service_AM, "called"); + *out_event = m_applet->lifecycle_manager.GetHDCPStateChangedEvent().GetHandle(); + R_SUCCEED(); +} + Result ICommonStateGetter::GetOperationMode(Out out_operation_mode) { const bool use_docked_mode{Settings::IsDockedMode()}; LOG_DEBUG(Service_AM, "called, use_docked_mode={}", use_docked_mode);