This commit is contained in:
Starlet 2018-06-30 16:50:35 -04:00
parent fd25a3f0b7
commit 6b0840d2ad
4 changed files with 31 additions and 2 deletions

3
.gitignore vendored
View file

@ -158,3 +158,6 @@ $RECYCLE.BIN/
# Mac desktop service store files
.DS_Store
# VS Launch Settings
launchSettings.json

View file

@ -45,6 +45,11 @@ namespace Ryujinx.HLE.OsHle.Services.Acc
public long ListAllUsers(ServiceCtx Context)
{
long Position = Context.Request.RecvListBuff[0].Position;
Context.Memory.WriteInt64(Position, 1L);
Context.Memory.WriteInt64(Position + 8, 0L);
Context.Ns.Log.PrintStub(LogClass.ServiceAcc, "Stubbed.");
return 0;
@ -52,6 +57,11 @@ namespace Ryujinx.HLE.OsHle.Services.Acc
public long ListOpenUsers(ServiceCtx Context)
{
long Position = Context.Request.RecvListBuff[0].Position;
Context.Memory.WriteInt64(Position, 1L);
Context.Memory.WriteInt64(Position + 8, 0L);
Context.Ns.Log.PrintStub(LogClass.ServiceAcc, "Stubbed.");
return 0;

View file

@ -46,7 +46,7 @@ namespace Ryujinx.HLE.OsHle.Services.Acc
for (int Index = 0; Index < ByteArr.Length; Index++)
{
if (Index > CharArr.Length)
if (Index > CharArr.Length - 1)
{
ByteArr[Index] = 0x0;
}

View file

@ -1,3 +1,4 @@
using Ryujinx.HLE.Logging;
using Ryujinx.HLE.OsHle.Ipc;
using System.Collections.Generic;
@ -13,8 +14,23 @@ namespace Ryujinx.HLE.OsHle.Services.Friend
{
m_Commands = new Dictionary<int, ServiceProcessRequest>()
{
//...
{ 10601, DeclareCloseOnlinePlaySession },
{ 10610, UpdateUserPresence }
};
}
public long DeclareCloseOnlinePlaySession(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceFriend, "Stubbed.");
return 0;
}
public long UpdateUserPresence(ServiceCtx Context)
{
Context.Ns.Log.PrintStub(LogClass.ServiceFriend, "Stubbed.");
return 0;
}
}
}