diff options
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/result.h | 7 | ||||
-rw-r--r-- | src/core/hle/service/friend/friend.cpp | 13 |
2 files changed, 15 insertions, 5 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h index e20e0bfee..d67e68bae 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -402,9 +402,8 @@ constexpr bool EvaluateResultFailure(const Result& r) { } template <typename T> -constexpr void UpdateCurrentResultReference(T result_reference, Result result) { - ASSERT(false); -} +constexpr void UpdateCurrentResultReference(T result_reference, Result result) = delete; +// Intentionally not defined template <> constexpr void UpdateCurrentResultReference<Result&>(Result& result_reference, Result result) { @@ -412,7 +411,7 @@ constexpr void UpdateCurrentResultReference<Result&>(Result& result_reference, R } template <> -constexpr void UpdateCurrentResultReference<Result>(Result result_reference, Result result) {} +constexpr void UpdateCurrentResultReference<const Result>(Result result_reference, Result result) {} } // namespace ResultImpl #define DECLARE_CURRENT_RESULT_REFERENCE_AND_STORAGE(COUNTER_VALUE) \ diff --git a/src/core/hle/service/friend/friend.cpp b/src/core/hle/service/friend/friend.cpp index e0db787fc..fad532115 100644 --- a/src/core/hle/service/friend/friend.cpp +++ b/src/core/hle/service/friend/friend.cpp @@ -26,7 +26,7 @@ public: {10101, &IFriendService::GetFriendList, "GetFriendList"}, {10102, nullptr, "UpdateFriendInfo"}, {10110, nullptr, "GetFriendProfileImage"}, - {10120, nullptr, "IsFriendListCacheAvailable"}, + {10120, &IFriendService::CheckFriendListAvailability, "CheckFriendListAvailability"}, {10121, nullptr, "EnsureFriendListAvailable"}, {10200, nullptr, "SendFriendRequestForApplication"}, {10211, nullptr, "AddFacedFriendRequestForApplication"}, @@ -194,6 +194,17 @@ private: // TODO(ogniK): Return a buffer of u64s which are the "NetworkServiceAccountId" } + void CheckFriendListAvailability(Kernel::HLERequestContext& ctx) { + IPC::RequestParser rp{ctx}; + const auto uuid{rp.PopRaw<Common::UUID>()}; + + LOG_WARNING(Service_Friend, "(STUBBED) called, uuid=0x{}", uuid.RawString()); + + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(ResultSuccess); + rb.Push(true); + } + KernelHelpers::ServiceContext service_context; Kernel::KEvent* completion_event; |