summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Mat M2021-04-24 12:37:34 -0400
committerGravatar GitHub2021-04-24 12:37:34 -0400
commit4c8c5ad1b68db89e0567ff0e51ba39c8676495fe (patch)
treeb69fb35c97182473ffbc7ec3be3535356f4c2364 /src
parentMerge pull request #6235 from german77/ectx_aw (diff)
parentICommonStateGetter: Stub SetRequestExitToLibraryAppletAtExecuteNextProgramEna... (diff)
downloadyuzu-4c8c5ad1b68db89e0567ff0e51ba39c8676495fe.tar.gz
yuzu-4c8c5ad1b68db89e0567ff0e51ba39c8676495fe.tar.xz
yuzu-4c8c5ad1b68db89e0567ff0e51ba39c8676495fe.zip
Merge pull request #6234 from Morph1984/stub-am
ICommonStateGetter: Stub SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/am.cpp10
-rw-r--r--src/core/hle/service/am/am.h1
2 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 4c8216b47..58c7f2930 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -687,7 +687,7 @@ ICommonStateGetter::ICommonStateGetter(Core::System& system_,
687 {501, nullptr, "SuppressDisablingSleepTemporarily"}, 687 {501, nullptr, "SuppressDisablingSleepTemporarily"},
688 {502, nullptr, "IsSleepEnabled"}, 688 {502, nullptr, "IsSleepEnabled"},
689 {503, nullptr, "IsDisablingSleepSuppressed"}, 689 {503, nullptr, "IsDisablingSleepSuppressed"},
690 {900, nullptr, "SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled"}, 690 {900, &ICommonStateGetter::SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled, "SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled"},
691 }; 691 };
692 // clang-format on 692 // clang-format on
693 693
@@ -817,6 +817,14 @@ void ICommonStateGetter::SetCpuBoostMode(Kernel::HLERequestContext& ctx) {
817 apm_sys->SetCpuBoostMode(ctx); 817 apm_sys->SetCpuBoostMode(ctx);
818} 818}
819 819
820void ICommonStateGetter::SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(
821 Kernel::HLERequestContext& ctx) {
822 LOG_WARNING(Service_AM, "(STUBBED) called");
823
824 IPC::ResponseBuilder rb{ctx, 2};
825 rb.Push(RESULT_SUCCESS);
826}
827
820IStorageImpl::~IStorageImpl() = default; 828IStorageImpl::~IStorageImpl() = default;
821 829
822class StorageDataImpl final : public IStorageImpl { 830class StorageDataImpl final : public IStorageImpl {
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index 756434716..5d302e155 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -196,6 +196,7 @@ private:
196 void EndVrModeEx(Kernel::HLERequestContext& ctx); 196 void EndVrModeEx(Kernel::HLERequestContext& ctx);
197 void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx); 197 void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx);
198 void SetCpuBoostMode(Kernel::HLERequestContext& ctx); 198 void SetCpuBoostMode(Kernel::HLERequestContext& ctx);
199 void SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled(Kernel::HLERequestContext& ctx);
199 200
200 std::shared_ptr<AppletMessageQueue> msg_queue; 201 std::shared_ptr<AppletMessageQueue> msg_queue;
201 bool vr_mode_state{}; 202 bool vr_mode_state{};