aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2021-04-23 22:26:31 +0200
committerGitHub <noreply@github.com>2021-04-23 22:26:31 +0200
commitc46f6879ff9171a1e024965618242e8bad373b6b (patch)
treeb1ce4b4ce61831797377f39be2089aaeecc3c58b /Ryujinx.HLE/HOS/Services/Friend/ServiceCreator
parent3e61fb0268ea0f52a37c4513dde0ec1f5a6463a2 (diff)
account: add Custom User Profiles support (#2227)
* Initial Impl * Fix names * remove useless ContentManager * Support backgrounds and improve avatar loading * Fix firmware checks * Addresses gdkchan feedback
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Friend/ServiceCreator')
-rw-r--r--Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs16
1 files changed, 5 insertions, 11 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs b/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs
index 1ae5d487..83b81e00 100644
--- a/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs
+++ b/Ryujinx.HLE/HOS/Services/Friend/ServiceCreator/IFriendService.cs
@@ -150,12 +150,9 @@ namespace Ryujinx.HLE.HOS.Services.Friend.ServiceCreator
return ResultCode.InvalidArgument;
}
- if (context.Device.System.AccountManager.TryGetUser(userId, out UserProfile profile))
- {
- profile.OnlinePlayState = AccountState.Open;
- }
-
- Logger.Stub?.PrintStub(LogClass.ServiceFriend, new { UserId = userId.ToString(), profile.OnlinePlayState });
+ context.Device.System.AccountManager.OpenUserOnlinePlay(userId);
+
+ Logger.Stub?.PrintStub(LogClass.ServiceFriend, new { UserId = userId.ToString() });
return ResultCode.Success;
}
@@ -171,12 +168,9 @@ namespace Ryujinx.HLE.HOS.Services.Friend.ServiceCreator
return ResultCode.InvalidArgument;
}
- if (context.Device.System.AccountManager.TryGetUser(userId, out UserProfile profile))
- {
- profile.OnlinePlayState = AccountState.Closed;
- }
+ context.Device.System.AccountManager.CloseUserOnlinePlay(userId);
- Logger.Stub?.PrintStub(LogClass.ServiceFriend, new { UserId = userId.ToString(), profile.OnlinePlayState });
+ Logger.Stub?.PrintStub(LogClass.ServiceFriend, new { UserId = userId.ToString() });
return ResultCode.Success;
}