diff options
| author | 2022-02-05 00:40:48 -0500 | |
|---|---|---|
| committer | 2022-02-05 13:18:46 -0500 | |
| commit | ee0547e4c4d38d681d9cd3b9f7071c4dade9110d (patch) | |
| tree | 9833fb69b1bd34105ea7d43dc74977c0c88e9fb3 /src/core/hle/service/friend | |
| parent | input/hid: Migrate to the new UUID implementation (diff) | |
| download | yuzu-ee0547e4c4d38d681d9cd3b9f7071c4dade9110d.tar.gz yuzu-ee0547e4c4d38d681d9cd3b9f7071c4dade9110d.tar.xz yuzu-ee0547e4c4d38d681d9cd3b9f7071c4dade9110d.zip | |
service: Migrate to the new UUID implementation
Diffstat (limited to 'src/core/hle/service/friend')
| -rw-r--r-- | src/core/hle/service/friend/friend.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp index 9f9cea1e0..3c621f7f0 100644 --- a/src/core/hle/service/friend/friend.cpp +++ b/src/core/hle/service/friend/friend.cpp | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | #include <queue> | 5 | #include <queue> |
| 6 | #include "common/logging/log.h" | 6 | #include "common/logging/log.h" |
| 7 | #include "common/uuid.h" | 7 | #include "common/new_uuid.h" |
| 8 | #include "core/core.h" | 8 | #include "core/core.h" |
| 9 | #include "core/hle/ipc_helpers.h" | 9 | #include "core/hle/ipc_helpers.h" |
| 10 | #include "core/hle/kernel/k_event.h" | 10 | #include "core/hle/kernel/k_event.h" |
| @@ -170,10 +170,10 @@ private: | |||
| 170 | void GetPlayHistoryRegistrationKey(Kernel::HLERequestContext& ctx) { | 170 | void GetPlayHistoryRegistrationKey(Kernel::HLERequestContext& ctx) { |
| 171 | IPC::RequestParser rp{ctx}; | 171 | IPC::RequestParser rp{ctx}; |
| 172 | const auto local_play = rp.Pop<bool>(); | 172 | const auto local_play = rp.Pop<bool>(); |
| 173 | const auto uuid = rp.PopRaw<Common::UUID>(); | 173 | const auto uuid = rp.PopRaw<Common::NewUUID>(); |
| 174 | 174 | ||
| 175 | LOG_WARNING(Service_Friend, "(STUBBED) called, local_play={}, uuid=0x{}", local_play, | 175 | LOG_WARNING(Service_Friend, "(STUBBED) called, local_play={}, uuid=0x{}", local_play, |
| 176 | uuid.Format()); | 176 | uuid.RawString()); |
| 177 | 177 | ||
| 178 | IPC::ResponseBuilder rb{ctx, 2}; | 178 | IPC::ResponseBuilder rb{ctx, 2}; |
| 179 | rb.Push(ResultSuccess); | 179 | rb.Push(ResultSuccess); |
| @@ -182,11 +182,11 @@ private: | |||
| 182 | void GetFriendList(Kernel::HLERequestContext& ctx) { | 182 | void GetFriendList(Kernel::HLERequestContext& ctx) { |
| 183 | IPC::RequestParser rp{ctx}; | 183 | IPC::RequestParser rp{ctx}; |
| 184 | const auto friend_offset = rp.Pop<u32>(); | 184 | const auto friend_offset = rp.Pop<u32>(); |
| 185 | const auto uuid = rp.PopRaw<Common::UUID>(); | 185 | const auto uuid = rp.PopRaw<Common::NewUUID>(); |
| 186 | [[maybe_unused]] const auto filter = rp.PopRaw<SizedFriendFilter>(); | 186 | [[maybe_unused]] const auto filter = rp.PopRaw<SizedFriendFilter>(); |
| 187 | const auto pid = rp.Pop<u64>(); | 187 | const auto pid = rp.Pop<u64>(); |
| 188 | LOG_WARNING(Service_Friend, "(STUBBED) called, offset={}, uuid=0x{}, pid={}", friend_offset, | 188 | LOG_WARNING(Service_Friend, "(STUBBED) called, offset={}, uuid=0x{}, pid={}", friend_offset, |
| 189 | uuid.Format(), pid); | 189 | uuid.RawString(), pid); |
| 190 | 190 | ||
| 191 | IPC::ResponseBuilder rb{ctx, 3}; | 191 | IPC::ResponseBuilder rb{ctx, 3}; |
| 192 | rb.Push(ResultSuccess); | 192 | rb.Push(ResultSuccess); |
| @@ -202,7 +202,7 @@ private: | |||
| 202 | 202 | ||
| 203 | class INotificationService final : public ServiceFramework<INotificationService> { | 203 | class INotificationService final : public ServiceFramework<INotificationService> { |
| 204 | public: | 204 | public: |
| 205 | explicit INotificationService(Core::System& system_, Common::UUID uuid_) | 205 | explicit INotificationService(Core::System& system_, Common::NewUUID uuid_) |
| 206 | : ServiceFramework{system_, "INotificationService"}, uuid{uuid_}, | 206 | : ServiceFramework{system_, "INotificationService"}, uuid{uuid_}, |
| 207 | service_context{system_, "INotificationService"} { | 207 | service_context{system_, "INotificationService"} { |
| 208 | // clang-format off | 208 | // clang-format off |
| @@ -293,7 +293,7 @@ private: | |||
| 293 | bool has_received_friend_request; | 293 | bool has_received_friend_request; |
| 294 | }; | 294 | }; |
| 295 | 295 | ||
| 296 | Common::UUID uuid; | 296 | Common::NewUUID uuid; |
| 297 | KernelHelpers::ServiceContext service_context; | 297 | KernelHelpers::ServiceContext service_context; |
| 298 | 298 | ||
| 299 | Kernel::KEvent* notification_event; | 299 | Kernel::KEvent* notification_event; |
| @@ -310,9 +310,9 @@ void Module::Interface::CreateFriendService(Kernel::HLERequestContext& ctx) { | |||
| 310 | 310 | ||
| 311 | void Module::Interface::CreateNotificationService(Kernel::HLERequestContext& ctx) { | 311 | void Module::Interface::CreateNotificationService(Kernel::HLERequestContext& ctx) { |
| 312 | IPC::RequestParser rp{ctx}; | 312 | IPC::RequestParser rp{ctx}; |
| 313 | auto uuid = rp.PopRaw<Common::UUID>(); | 313 | auto uuid = rp.PopRaw<Common::NewUUID>(); |
| 314 | 314 | ||
| 315 | LOG_DEBUG(Service_Friend, "called, uuid=0x{}", uuid.Format()); | 315 | LOG_DEBUG(Service_Friend, "called, uuid=0x{}", uuid.RawString()); |
| 316 | 316 | ||
| 317 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 317 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 318 | rb.Push(ResultSuccess); | 318 | rb.Push(ResultSuccess); |