aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/ServiceFactory.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/ServiceFactory.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/ServiceFactory.cs')
-rw-r--r--Ryujinx.HLE/HOS/Services/ServiceFactory.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/Services/ServiceFactory.cs b/Ryujinx.HLE/HOS/Services/ServiceFactory.cs
index 7cd943e0..3edb5619 100644
--- a/Ryujinx.HLE/HOS/Services/ServiceFactory.cs
+++ b/Ryujinx.HLE/HOS/Services/ServiceFactory.cs
@@ -100,10 +100,19 @@ namespace Ryujinx.HLE.HOS.Services
return new IeTicketService();
case "friend:a":
- return new Friend.IServiceCreator();
+ return new Friend.IServiceCreator(Friend.FriendServicePermissionLevel.Admin);
case "friend:u":
- return new Friend.IServiceCreator();
+ return new Friend.IServiceCreator(Friend.FriendServicePermissionLevel.User);
+
+ case "friend:v":
+ return new Friend.IServiceCreator(Friend.FriendServicePermissionLevel.Overlay);
+
+ case "friend:m":
+ return new Friend.IServiceCreator(Friend.FriendServicePermissionLevel.Manager);
+
+ case "friend:s":
+ return new Friend.IServiceCreator(Friend.FriendServicePermissionLevel.System);
case "fsp-srv":
return new IFileSystemProxy();