Fix stubs #2
This commit is contained in:
parent
fd25a3f0b7
commit
6b0840d2ad
4 changed files with 31 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -158,3 +158,6 @@ $RECYCLE.BIN/
|
|||
|
||||
# Mac desktop service store files
|
||||
.DS_Store
|
||||
|
||||
# VS Launch Settings
|
||||
launchSettings.json
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue