From 789cdba8b51f310399752f7a1309e489fadf8dc1 Mon Sep 17 00:00:00 2001 From: Thomas Guillemard Date: Thu, 4 Jul 2019 17:14:17 +0200 Subject: 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 --- Ryujinx.HLE/HOS/Services/ServiceFactory.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Ryujinx.HLE/HOS/Services/ServiceFactory.cs') 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(); -- cgit v1.2.3