Rename FriendErr to FriendError

This commit is contained in:
Thog 2019-06-27 18:19:34 +02:00
parent 5b80dce790
commit b4d7efeee5
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
3 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
namespace Ryujinx.HLE.HOS.Services.Friend
{
static class FriendErr
static class FriendError
{
public const int InvalidArgument = 2;
}

View file

@ -117,7 +117,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
if (uuid.IsNull)
{
return MakeError(ErrorModule.Friends, FriendErr.InvalidArgument);
return MakeError(ErrorModule.Friends, FriendError.InvalidArgument);
}
// There are no friends online, so we return 0 because the nn::account::NetworkServiceAccountId array is empty.
@ -155,7 +155,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
if (uuid.IsNull)
{
return MakeError(ErrorModule.Friends, FriendErr.InvalidArgument);
return MakeError(ErrorModule.Friends, FriendError.InvalidArgument);
}
// There are no friends online, so we return 0 because the nn::account::NetworkServiceAccountId array is empty.
@ -182,7 +182,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
if (uuid.IsNull)
{
return MakeError(ErrorModule.Friends, FriendErr.InvalidArgument);
return MakeError(ErrorModule.Friends, FriendError.InvalidArgument);
}
if (context.Device.System.State.Account.TryGetUser(uuid, out UserProfile profile))
@ -202,7 +202,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
if (uuid.IsNull)
{
return MakeError(ErrorModule.Friends, FriendErr.InvalidArgument);
return MakeError(ErrorModule.Friends, FriendError.InvalidArgument);
}
if (context.Device.System.State.Account.TryGetUser(uuid, out UserProfile profile))
@ -230,7 +230,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
if (uuid.IsNull)
{
return MakeError(ErrorModule.Friends, FriendErr.InvalidArgument);
return MakeError(ErrorModule.Friends, FriendError.InvalidArgument);
}
int elementCount = bufferContent.Length / Marshal.SizeOf<UserPresence>();

View file

@ -42,7 +42,7 @@ namespace Ryujinx.HLE.HOS.Services.Friend
if (userId.IsNull)
{
return MakeError(ErrorModule.Friends, FriendErr.InvalidArgument);
return MakeError(ErrorModule.Friends, FriendError.InvalidArgument);
}
MakeObject(context, new INotificationService(userId, _permissionLevel));