diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 14 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.h | 1 |
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 | ||
| 1827 | void 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 | |||
| 1827 | void IApplicationFunctions::QueryApplicationPlayStatistics(HLERequestContext& ctx) { | 1839 | void 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); |