|
|
@@ -274,6 +274,31 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc
|
|
|
return ResultCode.Success;
|
|
|
}
|
|
|
|
|
|
+ [Command(131)] // 6.0.0+
|
|
|
+ // ListOpenContextStoredUsers() -> array<nn::account::Uid, 0xa>
|
|
|
+ public ResultCode ListOpenContextStoredUsers(ServiceCtx context)
|
|
|
+ {
|
|
|
+ long outputPosition = context.Request.RecvListBuff[0].Position;
|
|
|
+ long outputSize = context.Request.RecvListBuff[0].Size;
|
|
|
+
|
|
|
+ MemoryHelper.FillWithZeros(context.Memory, outputPosition, (int)outputSize);
|
|
|
+
|
|
|
+ // TODO: This seems to write stored userids of the OpenContext in the buffer. We needs to determine them.
|
|
|
+
|
|
|
+ Logger.Stub?.PrintStub(LogClass.ServiceAcc);
|
|
|
+
|
|
|
+ return ResultCode.Success;
|
|
|
+ }
|
|
|
+
|
|
|
+ [Command(141)] // 6.0.0+
|
|
|
+ // ListQualifiedUsers() -> array<nn::account::Uid, 0xa>
|
|
|
+ public ResultCode ListQualifiedUsers(ServiceCtx context)
|
|
|
+ {
|
|
|
+ // TODO: Determine how users are "qualified". We assume all users are "qualified" for now.
|
|
|
+
|
|
|
+ return WriteUserList(context, context.Device.System.State.Account.GetAllUsers());
|
|
|
+ }
|
|
|
+
|
|
|
[Command(150)] // 6.0.0+
|
|
|
// IsUserAccountSwitchLocked() -> bool
|
|
|
public ResultCode IsUserAccountSwitchLocked(ServiceCtx context)
|