aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Friend
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2019-06-16 00:35:38 +0200
committerThomas Guillemard <me@thog.eu>2019-06-16 00:35:38 +0200
commit5c1bc524092b3c5d867ce6204ac9db27b7359d3f (patch)
tree6176a128cb171a0b58b8fe12da87a346d2acf2aa /Ryujinx.HLE/HOS/Services/Friend
parentd8d5f2cbe703aa2ef2d1bb9211b3056da94b0168 (diff)
Refactoring of acc:u0 (#701)
* Refactoring of acc:u0 - Move all account things to the account service - More accurate IAccountServiceForApplication - Add helper to UInt128 * FIx my engrish * FIx my engrish #2
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Friend')
-rw-r--r--Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs b/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs
index 1a60a78b..17a32b00 100644
--- a/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs
+++ b/Ryujinx.HLE/HOS/Services/Friend/IFriendService.cs
@@ -69,9 +69,9 @@ namespace Ryujinx.HLE.HOS.Services.Friend
context.RequestData.ReadInt64(),
context.RequestData.ReadInt64());
- if (context.Device.System.State.TryGetUser(uuid, out UserProfile profile))
+ if (context.Device.System.State.Account.TryGetUser(uuid, out UserProfile profile))
{
- profile.OnlinePlayState = OpenCloseState.Open;
+ profile.OnlinePlayState = AccountState.Open;
}
Logger.PrintStub(LogClass.ServiceFriend, new { UserId = uuid.ToString(), profile.OnlinePlayState });
@@ -86,9 +86,9 @@ namespace Ryujinx.HLE.HOS.Services.Friend
context.RequestData.ReadInt64(),
context.RequestData.ReadInt64());
- if (context.Device.System.State.TryGetUser(uuid, out UserProfile profile))
+ if (context.Device.System.State.Account.TryGetUser(uuid, out UserProfile profile))
{
- profile.OnlinePlayState = OpenCloseState.Closed;
+ profile.OnlinePlayState = AccountState.Closed;
}
Logger.PrintStub(LogClass.ServiceFriend, new { UserId = uuid.ToString(), profile.OnlinePlayState });