forked from Mirror/Ryujinx
Implement Account LoadOpenContext (#4359)
* Implement Account LoadOpenContext * Formatting
This commit is contained in:
parent
9044cb38d1
commit
780627e7b0
1 changed files with 10 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue