Add nifm IFriendService: 10600 (DeclareOpenOnlinePlaySession)
This commit is contained in:
parent
1b2e430e88
commit
b8e0b56e0a
1 changed files with 18 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue