summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/friend/friend.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2019-06-25 03:23:23 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2019-06-25 03:23:23 +0200
commit5d005b87a3494e2d488ef611783a4e177fcfcee9 (patch)
treed0148623d3021bf5abbcaef0b6170ef3b92b7f9a /src/core/hle/service/friend/friend.cpp
parentImplemented INotificationService (diff)
downloadyuzu-5d005b87a3494e2d488ef611783a4e177fcfcee9.tar
yuzu-5d005b87a3494e2d488ef611783a4e177fcfcee9.tar.gz
yuzu-5d005b87a3494e2d488ef611783a4e177fcfcee9.tar.bz2
yuzu-5d005b87a3494e2d488ef611783a4e177fcfcee9.tar.lz
yuzu-5d005b87a3494e2d488ef611783a4e177fcfcee9.tar.xz
yuzu-5d005b87a3494e2d488ef611783a4e177fcfcee9.tar.zst
yuzu-5d005b87a3494e2d488ef611783a4e177fcfcee9.zip
Diffstat (limited to 'src/core/hle/service/friend/friend.cpp')
-rw-r--r--src/core/hle/service/friend/friend.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp
index 9752f1a8d..a00d7dce7 100644
--- a/src/core/hle/service/friend/friend.cpp
+++ b/src/core/hle/service/friend/friend.cpp
@@ -151,7 +151,7 @@ private:
while (!notifications.empty()) {
notifications.pop();
}
- states.has_recieved_friend_request = false;
+ states.has_received_friend_request = false;
states.has_updated_friends = false;
IPC::ResponseBuilder rb{ctx, 2};
@@ -160,13 +160,14 @@ private:
void Pop(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_ACC, "called");
- IPC::ResponseBuilder rb{ctx, 2};
if (notifications.empty()) {
LOG_ERROR(Service_ACC, "No notifications in queue!");
+ IPC::ResponseBuilder rb{ctx, 2};
rb.Push(ERR_NO_NOTIFICATIONS);
return;
}
+ IPC::ResponseBuilder rb{ctx, 6};
auto notification = notifications.front();
notifications.pop();
@@ -175,8 +176,8 @@ private:
case NotificationTypes::HasUpdatedFriendsList:
states.has_updated_friends = false;
break;
- case NotificationTypes::HasRecievedFriendRequest:
- states.has_recieved_friend_request = false;
+ case NotificationTypes::HasReceivedFriendRequest:
+ states.has_received_friend_request = false;
break;
default:
// HOS seems not have an error case for an unknown notification
@@ -185,11 +186,12 @@ private:
break;
}
rb.Push(RESULT_SUCCESS);
+ rb.PushRaw<SizedNotificationInfo>(notification);
}
enum class NotificationTypes : u32_le {
HasUpdatedFriendsList = 0x65,
- HasRecievedFriendRequest = 0x1
+ HasReceivedFriendRequest = 0x1
};
struct SizedNotificationInfo {
@@ -201,7 +203,7 @@ private:
struct States {
bool has_updated_friends;
- bool has_recieved_friend_request;
+ bool has_received_friend_request;
};
Common::UUID uuid{};