diff options
| author | 2024-02-17 22:26:03 +0100 | |
|---|---|---|
| committer | 2024-02-18 00:49:41 +0100 | |
| commit | 90c43aa2e7108f0f20bb503083b05ca415b994e5 (patch) | |
| tree | 4953e00b5b4208b3bd9152e45d66703cf2b9396b | |
| parent | Merge pull request #13016 from german77/set-interface2 (diff) | |
| download | yuzu-90c43aa2e7108f0f20bb503083b05ca415b994e5.tar.gz yuzu-90c43aa2e7108f0f20bb503083b05ca415b994e5.tar.xz yuzu-90c43aa2e7108f0f20bb503083b05ca415b994e5.zip | |
service: Add GetCacheStorageMax stub to IApplicationFunctions
| -rw-r--r-- | src/core/hle/service/am/service/application_functions.cpp | 12 | ||||
| -rw-r--r-- | src/core/hle/service/am/service/application_functions.h | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/am/service/application_functions.cpp b/src/core/hle/service/am/service/application_functions.cpp index b788fddd4..ac3b0066e 100644 --- a/src/core/hle/service/am/service/application_functions.cpp +++ b/src/core/hle/service/am/service/application_functions.cpp | |||
| @@ -40,7 +40,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_, std::shared_ | |||
| 40 | {26, D<&IApplicationFunctions::GetSaveDataSize>, "GetSaveDataSize"}, | 40 | {26, D<&IApplicationFunctions::GetSaveDataSize>, "GetSaveDataSize"}, |
| 41 | {27, D<&IApplicationFunctions::CreateCacheStorage>, "CreateCacheStorage"}, | 41 | {27, D<&IApplicationFunctions::CreateCacheStorage>, "CreateCacheStorage"}, |
| 42 | {28, D<&IApplicationFunctions::GetSaveDataSizeMax>, "GetSaveDataSizeMax"}, | 42 | {28, D<&IApplicationFunctions::GetSaveDataSizeMax>, "GetSaveDataSizeMax"}, |
| 43 | {29, nullptr, "GetCacheStorageMax"}, | 43 | {29, D<&IApplicationFunctions::GetCacheStorageMax>, "GetCacheStorageMax"}, |
| 44 | {30, D<&IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed>, "BeginBlockingHomeButtonShortAndLongPressed"}, | 44 | {30, D<&IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed>, "BeginBlockingHomeButtonShortAndLongPressed"}, |
| 45 | {31, D<&IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed>, "EndBlockingHomeButtonShortAndLongPressed"}, | 45 | {31, D<&IApplicationFunctions::EndBlockingHomeButtonShortAndLongPressed>, "EndBlockingHomeButtonShortAndLongPressed"}, |
| 46 | {32, D<&IApplicationFunctions::BeginBlockingHomeButton>, "BeginBlockingHomeButton"}, | 46 | {32, D<&IApplicationFunctions::BeginBlockingHomeButton>, "BeginBlockingHomeButton"}, |
| @@ -267,6 +267,16 @@ Result IApplicationFunctions::GetSaveDataSizeMax(Out<u64> out_max_normal_size, | |||
| 267 | R_SUCCEED(); | 267 | R_SUCCEED(); |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | Result IApplicationFunctions::GetCacheStorageMax(Out<u32> out_max_normal_size, | ||
| 271 | Out<u64> out_max_journal_size) { | ||
| 272 | LOG_WARNING(Service_AM, "(STUBBED) called"); | ||
| 273 | |||
| 274 | *out_max_normal_size = 0xFFFFFF; | ||
| 275 | *out_max_journal_size = 0xFFFFFF; | ||
| 276 | |||
| 277 | R_SUCCEED(); | ||
| 278 | } | ||
| 279 | |||
| 270 | Result IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(s64 unused) { | 280 | Result IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(s64 unused) { |
| 271 | LOG_WARNING(Service_AM, "(STUBBED) called"); | 281 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 272 | 282 | ||
diff --git a/src/core/hle/service/am/service/application_functions.h b/src/core/hle/service/am/service/application_functions.h index 3548202f8..c86f0d8ac 100644 --- a/src/core/hle/service/am/service/application_functions.h +++ b/src/core/hle/service/am/service/application_functions.h | |||
| @@ -40,6 +40,7 @@ private: | |||
| 40 | Result CreateCacheStorage(Out<u32> out_target_media, Out<u64> out_required_size, u16 index, | 40 | Result CreateCacheStorage(Out<u32> out_target_media, Out<u64> out_required_size, u16 index, |
| 41 | u64 normal_size, u64 journal_size); | 41 | u64 normal_size, u64 journal_size); |
| 42 | Result GetSaveDataSizeMax(Out<u64> out_max_normal_size, Out<u64> out_max_journal_size); | 42 | Result GetSaveDataSizeMax(Out<u64> out_max_normal_size, Out<u64> out_max_journal_size); |
| 43 | Result GetCacheStorageMax(Out<u32> out_max_normal_size, Out<u64> out_max_journal_size); | ||
| 43 | Result BeginBlockingHomeButtonShortAndLongPressed(s64 unused); | 44 | Result BeginBlockingHomeButtonShortAndLongPressed(s64 unused); |
| 44 | Result EndBlockingHomeButtonShortAndLongPressed(); | 45 | Result EndBlockingHomeButtonShortAndLongPressed(); |
| 45 | Result BeginBlockingHomeButton(s64 timeout_ns); | 46 | Result BeginBlockingHomeButton(s64 timeout_ns); |