summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar FearlessTobi2023-09-12 00:21:03 +0200
committerGravatar FearlessTobi2023-09-12 00:21:03 +0200
commita2150e456c15d11c9d06604a91dd393d99b586c1 (patch)
treed06e348a449064dbceaab743e112b09a1b73f88f /src
parentbsd: Demote "Select" log to dehug (diff)
downloadyuzu-a2150e456c15d11c9d06604a91dd393d99b586c1.tar.gz
yuzu-a2150e456c15d11c9d06604a91dd393d99b586c1.tar.xz
yuzu-a2150e456c15d11c9d06604a91dd393d99b586c1.zip
am: Stub GetSaveDataSizeMax
Needed for Minecraft Legends.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/am.cpp14
-rw-r--r--src/core/hle/service/am/am.h1
2 files changed, 14 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index e92f400de..4f810d202 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_)
1386 {25, &IApplicationFunctions::ExtendSaveData, "ExtendSaveData"}, 1386 {25, &IApplicationFunctions::ExtendSaveData, "ExtendSaveData"},
1387 {26, &IApplicationFunctions::GetSaveDataSize, "GetSaveDataSize"}, 1387 {26, &IApplicationFunctions::GetSaveDataSize, "GetSaveDataSize"},
1388 {27, &IApplicationFunctions::CreateCacheStorage, "CreateCacheStorage"}, 1388 {27, &IApplicationFunctions::CreateCacheStorage, "CreateCacheStorage"},
1389 {28, nullptr, "GetSaveDataSizeMax"}, 1389 {28, &IApplicationFunctions::GetSaveDataSizeMax, "GetSaveDataSizeMax"},
1390 {29, nullptr, "GetCacheStorageMax"}, 1390 {29, nullptr, "GetCacheStorageMax"},
1391 {30, &IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed, "BeginBlockingHomeButtonShortAndLongPressed"}, 1391 {30, &IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed, "BeginBlockingHomeButtonShortAndLongPressed"},
1392 {31, &IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed, "EndBlockingHomeButtonShortAndLongPressed"}, 1392 {31, &IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed, "EndBlockingHomeButtonShortAndLongPressed"},
@@ -1824,6 +1824,18 @@ void IApplicationFunctions::CreateCacheStorage(HLERequestContext& ctx) {
1824 rb.PushRaw(resp); 1824 rb.PushRaw(resp);
1825} 1825}
1826 1826
1827void IApplicationFunctions::GetSaveDataSizeMax(HLERequestContext& ctx) {
1828 LOG_WARNING(Service_AM, "(STUBBED) called");
1829
1830 constexpr u64 size_max_normal = 0xFFFFFFF;
1831 constexpr u64 size_max_journal = 0xFFFFFFF;
1832
1833 IPC::ResponseBuilder rb{ctx, 6};
1834 rb.Push(ResultSuccess);
1835 rb.Push(size_max_normal);
1836 rb.Push(size_max_journal);
1837}
1838
1827void IApplicationFunctions::QueryApplicationPlayStatistics(HLERequestContext& ctx) { 1839void IApplicationFunctions::QueryApplicationPlayStatistics(HLERequestContext& ctx) {
1828 LOG_WARNING(Service_AM, "(STUBBED) called"); 1840 LOG_WARNING(Service_AM, "(STUBBED) called");
1829 1841
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index d68998f04..d3c2e55ce 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -316,6 +316,7 @@ private:
316 void ExtendSaveData(HLERequestContext& ctx); 316 void ExtendSaveData(HLERequestContext& ctx);
317 void GetSaveDataSize(HLERequestContext& ctx); 317 void GetSaveDataSize(HLERequestContext& ctx);
318 void CreateCacheStorage(HLERequestContext& ctx); 318 void CreateCacheStorage(HLERequestContext& ctx);
319 void GetSaveDataSizeMax(HLERequestContext& ctx);
319 void BeginBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx); 320 void BeginBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx);
320 void EndBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx); 321 void EndBlockingHomeButtonShortAndLongPressed(HLERequestContext& ctx);
321 void BeginBlockingHomeButton(HLERequestContext& ctx); 322 void BeginBlockingHomeButton(HLERequestContext& ctx);