aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Friend/IDaemonSuspendSessionService.cs
diff options
context:
space:
mode:
authorThomas Guillemard <me@thog.eu>2019-07-04 17:14:17 +0200
committerAc_K <Acoustik666@gmail.com>2019-07-04 17:14:17 +0200
commit789cdba8b51f310399752f7a1309e489fadf8dc1 (patch)
tree7a0a596ea90dccad5f740708f2b22444c2d33a2d /Ryujinx.HLE/HOS/Services/Friend/IDaemonSuspendSessionService.cs
parentb2b736abc2569ab5d8199da666aef8d8394844a0 (diff)
Refactor the friend namespace (#721)
* Refactor the friend namespace and UInt128 This commit also: - Fix GetFriendsList arguments ordering. - Add GetFriendListIds. - Expose the permission level of the port instance. - InvalidUUID => InvalidArgument * friend: add all cmds as commments * add Friend structure layout * Rename FriendErr to FriendError * Accurately implement INotificationService * Fix singleton lock of NotificationEventHandler * Address comments * Add comments for IDaemonSuspendSessionService cmds * Explicitly define the Charset when needed Also make "Nickname" a string * Address gdk's comments
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Friend/IDaemonSuspendSessionService.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/Friend/IDaemonSuspendSessionService.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Friend/IDaemonSuspendSessionService.cs b/Ryujinx.HLE/HOS/Services/Friend/IDaemonSuspendSessionService.cs
index b1f23dd5..0de74d78 100644
--- a/Ryujinx.HLE/HOS/Services/Friend/IDaemonSuspendSessionService.cs
+++ b/Ryujinx.HLE/HOS/Services/Friend/IDaemonSuspendSessionService.cs
@@ -7,14 +7,22 @@ namespace Ryujinx.HLE.HOS.Services.Friend
{
private Dictionary<int, ServiceProcessRequest> _commands;
+ private FriendServicePermissionLevel PermissionLevel;
+
public override IReadOnlyDictionary<int, ServiceProcessRequest> Commands => _commands;
- public IDaemonSuspendSessionService()
+ public IDaemonSuspendSessionService(FriendServicePermissionLevel permissionLevel)
{
_commands = new Dictionary<int, ServiceProcessRequest>
{
- // ...
+ //{ 0, Unknown0 }, // 4.0.0+
+ //{ 1, Unknown1 }, // 4.0.0+
+ //{ 2, Unknown2 }, // 4.0.0+
+ //{ 3, Unknown3 }, // 4.0.0+
+ //{ 4, Unknown4 }, // 4.0.0+
};
+
+ PermissionLevel = permissionLevel;
}
}
} \ No newline at end of file