From 64853a58307f5f5d01ac5fec03fcf98040c13c9f Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Wed, 16 Nov 2022 17:59:39 +0100 Subject: [PATCH] am: Stub GetSaveDataSizeMax() --- .../ApplicationProxy/IApplicationFunctions.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Ryujinx.HLE/HOS/Services/Am/AppletOE/ApplicationProxyService/ApplicationProxy/IApplicationFunctions.cs b/Ryujinx.HLE/HOS/Services/Am/AppletOE/ApplicationProxyService/ApplicationProxy/IApplicationFunctions.cs index f89827d32fc5..c60561a7c082 100644 --- a/Ryujinx.HLE/HOS/Services/Am/AppletOE/ApplicationProxyService/ApplicationProxy/IApplicationFunctions.cs +++ b/Ryujinx.HLE/HOS/Services/Am/AppletOE/ApplicationProxyService/ApplicationProxy/IApplicationFunctions.cs @@ -268,6 +268,20 @@ public ResultCode CreateCacheStorage(ServiceCtx context) return ResultCode.Success; } + [CommandHipc(28)] // 11.0.0+ + // TODO: This is currently just a guess and needs to be confirmed + // GetSaveDataSizeMax() -> (s64 save_size_max, s64 journal_size_max) + public ResultCode GetSaveDataSizeMax(ServiceCtx context) + { + + context.ResponseData.Write((long)_defaultSaveDataSize); + context.ResponseData.Write((long)_defaultJournalSaveDataSize); + + Logger.Stub?.PrintStub(LogClass.ServiceAm); + + return ResultCode.Success; + } + [CommandHipc(30)] // BeginBlockingHomeButtonShortAndLongPressed() public ResultCode BeginBlockingHomeButtonShortAndLongPressed(ServiceCtx context)