diff options
| author | HorrorTroll <sonicvipduc@gmail.com> | 2019-04-25 20:03:00 +0700 |
|---|---|---|
| committer | jduncanator <1518948+jduncanator@users.noreply.github.com> | 2019-04-25 23:03:00 +1000 |
| commit | 6e8c080968a3de33166c258512bd69e08b73aa69 (patch) | |
| tree | 60e985956030663d0a513e21f7b1a1c4c147046a /Ryujinx.HLE/HOS/Services/Friend | |
| parent | 26be1cb4e285ed275ee885ec398833b02345a0e7 (diff) | |
Updates to nifm, irs and nvdrv services (#679)
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Friend')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs b/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs index 54d85ea5..1a60a78b 100644 --- a/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs +++ b/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs @@ -17,6 +17,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend _commands = new Dictionary<int, ServiceProcessRequest> { { 10101, GetFriendList }, + { 10600, DeclareOpenOnlinePlaySession }, { 10601, DeclareCloseOnlinePlaySession }, { 10610, UpdateUserPresence } }; @@ -61,6 +62,23 @@ namespace Ryujinx.HLE.HOS.Services.Friend return 0; } + // DeclareOpenOnlinePlaySession(nn::account::Uid) + public long DeclareOpenOnlinePlaySession(ServiceCtx context) + { + UInt128 uuid = new UInt128( + context.RequestData.ReadInt64(), + context.RequestData.ReadInt64()); + + if (context.Device.System.State.TryGetUser(uuid, out UserProfile profile)) + { + profile.OnlinePlayState = OpenCloseState.Open; + } + + Logger.PrintStub(LogClass.ServiceFriend, new { UserId = uuid.ToString(), profile.OnlinePlayState }); + + return 0; + } + // DeclareCloseOnlinePlaySession(nn::account::Uid) public long DeclareCloseOnlinePlaySession(ServiceCtx context) { |
