From 780627e7b0bc6137e72674d146e121a6def0fe13 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 1 Feb 2023 12:52:36 -0300 Subject: [PATCH] Implement Account LoadOpenContext (#4359) * Implement Account LoadOpenContext * Formatting --- .../Account/Acc/IAccountServiceForApplication.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Account/Acc/IAccountServiceForApplication.cs b/Ryujinx.HLE/HOS/Services/Account/Acc/IAccountServiceForApplication.cs index 059aba17..1b412d74 100644 --- a/Ryujinx.HLE/HOS/Services/Account/Acc/IAccountServiceForApplication.cs +++ b/Ryujinx.HLE/HOS/Services/Account/Acc/IAccountServiceForApplication.cs @@ -137,7 +137,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc return resultCode; } - + [CommandHipc(110)] // StoreSaveDataThumbnail(nn::account::Uid, buffer) public ResultCode StoreSaveDataThumbnail(ServiceCtx context) @@ -153,10 +153,17 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc } [CommandHipc(130)] // 5.0.0+ - // LoadOpenContext(nn::account::Uid) + // LoadOpenContext(nn::account::Uid) -> object public ResultCode LoadOpenContext(ServiceCtx context) { - Logger.Stub?.PrintStub(LogClass.ServiceAcc); + ResultCode resultCode = _applicationServiceServer.CheckUserId(context, out UserId userId); + + if (resultCode != ResultCode.Success) + { + return resultCode; + } + + MakeObject(context, new IManagerForApplication(userId)); return ResultCode.Success; }