diff options
| author | Thomas Guillemard <me@thog.eu> | 2019-07-04 17:14:17 +0200 |
|---|---|---|
| committer | Ac_K <Acoustik666@gmail.com> | 2019-07-04 17:14:17 +0200 |
| commit | 789cdba8b51f310399752f7a1309e489fadf8dc1 (patch) | |
| tree | 7a0a596ea90dccad5f740708f2b22444c2d33a2d /Ryujinx.HLE/HOS/Services/Friend/FriendServicePermissionLevel.cs | |
| parent | b2b736abc2569ab5d8199da666aef8d8394844a0 (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/FriendServicePermissionLevel.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Friend/FriendServicePermissionLevel.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Friend/FriendServicePermissionLevel.cs b/Ryujinx.HLE/HOS/Services/Friend/FriendServicePermissionLevel.cs new file mode 100644 index 00000000..2ddb0b85 --- /dev/null +++ b/Ryujinx.HLE/HOS/Services/Friend/FriendServicePermissionLevel.cs @@ -0,0 +1,19 @@ +using System; + +namespace Ryujinx.HLE.HOS.Services.Friend +{ + [Flags] + enum FriendServicePermissionLevel + { + UserMask = 1, + OverlayMask = 2, + ManagerMask = 4, + SystemMask = 8, + + Admin = -1, + User = UserMask, + Overlay = UserMask | OverlayMask, + Manager = UserMask | OverlayMask | ManagerMask, + System = UserMask | SystemMask + } +} |
