Archived
1
0
Fork 0
forked from Mirror/Ryujinx

Implement Account LoadOpenContext (#4359)

* Implement Account LoadOpenContext

* Formatting
This commit is contained in:
gdkchan 2023-02-01 12:52:36 -03:00 committed by GitHub
parent 9044cb38d1
commit 780627e7b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}