VERY experimental Nintendo Switch 2 emulator
C++
am: Stub GetSaveDataSizeMax
FearlessTobi67e57a29d579
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cppindex e92f400de2..4f810d202f 100644--- a/src/core/hle/service/am/am.cpp+++ b/src/core/hle/service/am/am.cpp@@ -1386,7 +1386,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_){25, &IApplicationFunctions::ExtendSaveData, "ExtendSaveData"},{26, &IApplicationFunctions::GetSaveDataSize, "GetSaveDataSize"},{27, &IApplicationFunctions::CreateCacheStorage, "CreateCacheStorage"},- {28, nullptr, "GetSaveDataSizeMax"},+ {28, &IApplicationFunctions::GetSaveDataSizeMax, "GetSaveDataSizeMax"},{29, nullptr, "GetCacheStorageMax"},{30, &IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed, "BeginBlockingHomeButtonShortAndLongPressed"},{31, &IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed, "EndBlockingHomeButtonShortAndLongPressed"},@@ -1824,6 +1824,18 @@ void IApplicationFunctions::CreateCacheStorage(HLERequestContext& ctx) {rb.PushRaw(resp);}+void IApplicationFunctions::GetSaveDataSizeMax(HLERequestContext& ctx) {+ LOG_WARNING(Service_AM, "(STUBBED) called");++ constexpr u64 size_max_normal = 0xFFFFFFF;+ constexpr u64 size_max_journal = 0xFFFFFFF;++ IPC::ResponseBuilder rb{ctx, 6};+ rb.Push(ResultSuccess);+ rb.Push(size_max_normal);+ rb.Push(size_max_journal);+}+void IApplicationFunctions::QueryApplicationPlayStatistics(HLERequestContext& ctx) {LOG_WARNING(Service_AM, "(STUBBED) called");diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.hindex d68998f049..d3c2e55cec 100644--- a/src/core/hle/service/am/am.h+++ b/src/core/hle/service/am/am.h@@ -316,6 +316,7 @@ private:void ExtendSaveData(HLERequestContext& ctx);void GetSaveDataSize(HLERequestContext& ctx);void CreateCacheStorage(HLERequestContext& ctx);+ void GetSaveDataSizeMax(HLERequestContext& ctx);void BeginBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx);void EndBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx);void BeginBlockingHomeButton(HLERequestContext& ctx);