diff --git a/.gitignore b/.gitignore index 82d9719b59..3051ef8827 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,6 @@ $RECYCLE.BIN/ # Mac desktop service store files .DS_Store + +# VS Launch Settings +launchSettings.json \ No newline at end of file diff --git a/Ryujinx.HLE/OsHle/Services/Acc/IAccountServiceForApplication.cs b/Ryujinx.HLE/OsHle/Services/Acc/IAccountServiceForApplication.cs index d82bbfdb34..9e5f805eb1 100644 --- a/Ryujinx.HLE/OsHle/Services/Acc/IAccountServiceForApplication.cs +++ b/Ryujinx.HLE/OsHle/Services/Acc/IAccountServiceForApplication.cs @@ -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; diff --git a/Ryujinx.HLE/OsHle/Services/Acc/IProfile.cs b/Ryujinx.HLE/OsHle/Services/Acc/IProfile.cs index 080072f3d7..04c4885397 100644 --- a/Ryujinx.HLE/OsHle/Services/Acc/IProfile.cs +++ b/Ryujinx.HLE/OsHle/Services/Acc/IProfile.cs @@ -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; } diff --git a/Ryujinx.HLE/OsHle/Services/Friend/IFriendService.cs b/Ryujinx.HLE/OsHle/Services/Friend/IFriendService.cs index d5843ffbd2..4ddbb9a1db 100644 --- a/Ryujinx.HLE/OsHle/Services/Friend/IFriendService.cs +++ b/Ryujinx.HLE/OsHle/Services/Friend/IFriendService.cs @@ -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() { - //... + { 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; + } } } \ No newline at end of file