diff options
author | gdkchan <gab.dark.100@gmail.com> | 2023-02-01 12:52:36 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 12:52:36 -0300 |
commit | 780627e7b0bc6137e72674d146e121a6def0fe13 (patch) | |
tree | 37bf7dd89a8a9e7021bb0eb73aaf772d44e7504a | |
parent | 9044cb38d19194bb29595ac09cad8857364650b2 (diff) |
Implement Account LoadOpenContext (#4359)1.1.599
* Implement Account LoadOpenContext
* Formatting
-rw-r--r-- | Ryujinx.HLE/HOS/Services/Account/Acc/IAccountServiceForApplication.cs | 13 |
1 files 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<bytes, 5>) 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<nn::account::baas::IManagerForApplication> 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; } |