|
|
@ -4,7 +4,7 @@ |
|
|
|
|
|
|
|
|
#include <queue>
|
|
|
#include <queue>
|
|
|
#include "common/logging/log.h"
|
|
|
#include "common/logging/log.h"
|
|
|
#include "common/uuid.h"
|
|
|
|
|
|
|
|
|
#include "common/new_uuid.h"
|
|
|
#include "core/core.h"
|
|
|
#include "core/core.h"
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
|
#include "core/hle/kernel/k_event.h"
|
|
|
#include "core/hle/kernel/k_event.h"
|
|
|
@ -170,10 +170,10 @@ private: |
|
|
void GetPlayHistoryRegistrationKey(Kernel::HLERequestContext& ctx) { |
|
|
void GetPlayHistoryRegistrationKey(Kernel::HLERequestContext& ctx) { |
|
|
IPC::RequestParser rp{ctx}; |
|
|
IPC::RequestParser rp{ctx}; |
|
|
const auto local_play = rp.Pop<bool>(); |
|
|
const auto local_play = rp.Pop<bool>(); |
|
|
const auto uuid = rp.PopRaw<Common::UUID>(); |
|
|
|
|
|
|
|
|
const auto uuid = rp.PopRaw<Common::NewUUID>(); |
|
|
|
|
|
|
|
|
LOG_WARNING(Service_Friend, "(STUBBED) called, local_play={}, uuid=0x{}", local_play, |
|
|
LOG_WARNING(Service_Friend, "(STUBBED) called, local_play={}, uuid=0x{}", local_play, |
|
|
uuid.Format()); |
|
|
|
|
|
|
|
|
uuid.RawString()); |
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2}; |
|
|
IPC::ResponseBuilder rb{ctx, 2}; |
|
|
rb.Push(ResultSuccess); |
|
|
rb.Push(ResultSuccess); |
|
|
@ -182,11 +182,11 @@ private: |
|
|
void GetFriendList(Kernel::HLERequestContext& ctx) { |
|
|
void GetFriendList(Kernel::HLERequestContext& ctx) { |
|
|
IPC::RequestParser rp{ctx}; |
|
|
IPC::RequestParser rp{ctx}; |
|
|
const auto friend_offset = rp.Pop<u32>(); |
|
|
const auto friend_offset = rp.Pop<u32>(); |
|
|
const auto uuid = rp.PopRaw<Common::UUID>(); |
|
|
|
|
|
|
|
|
const auto uuid = rp.PopRaw<Common::NewUUID>(); |
|
|
[[maybe_unused]] const auto filter = rp.PopRaw<SizedFriendFilter>(); |
|
|
[[maybe_unused]] const auto filter = rp.PopRaw<SizedFriendFilter>(); |
|
|
const auto pid = rp.Pop<u64>(); |
|
|
const auto pid = rp.Pop<u64>(); |
|
|
LOG_WARNING(Service_Friend, "(STUBBED) called, offset={}, uuid=0x{}, pid={}", friend_offset, |
|
|
LOG_WARNING(Service_Friend, "(STUBBED) called, offset={}, uuid=0x{}, pid={}", friend_offset, |
|
|
uuid.Format(), pid); |
|
|
|
|
|
|
|
|
uuid.RawString(), pid); |
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 3}; |
|
|
IPC::ResponseBuilder rb{ctx, 3}; |
|
|
rb.Push(ResultSuccess); |
|
|
rb.Push(ResultSuccess); |
|
|
@ -202,7 +202,7 @@ private: |
|
|
|
|
|
|
|
|
class INotificationService final : public ServiceFramework<INotificationService> { |
|
|
class INotificationService final : public ServiceFramework<INotificationService> { |
|
|
public: |
|
|
public: |
|
|
explicit INotificationService(Core::System& system_, Common::UUID uuid_) |
|
|
|
|
|
|
|
|
explicit INotificationService(Core::System& system_, Common::NewUUID uuid_) |
|
|
: ServiceFramework{system_, "INotificationService"}, uuid{uuid_}, |
|
|
: ServiceFramework{system_, "INotificationService"}, uuid{uuid_}, |
|
|
service_context{system_, "INotificationService"} { |
|
|
service_context{system_, "INotificationService"} { |
|
|
// clang-format off
|
|
|
// clang-format off
|
|
|
@ -293,7 +293,7 @@ private: |
|
|
bool has_received_friend_request; |
|
|
bool has_received_friend_request; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
Common::UUID uuid; |
|
|
|
|
|
|
|
|
Common::NewUUID uuid; |
|
|
KernelHelpers::ServiceContext service_context; |
|
|
KernelHelpers::ServiceContext service_context; |
|
|
|
|
|
|
|
|
Kernel::KEvent* notification_event; |
|
|
Kernel::KEvent* notification_event; |
|
|
@ -310,9 +310,9 @@ void Module::Interface::CreateFriendService(Kernel::HLERequestContext& ctx) { |
|
|
|
|
|
|
|
|
void Module::Interface::CreateNotificationService(Kernel::HLERequestContext& ctx) { |
|
|
void Module::Interface::CreateNotificationService(Kernel::HLERequestContext& ctx) { |
|
|
IPC::RequestParser rp{ctx}; |
|
|
IPC::RequestParser rp{ctx}; |
|
|
auto uuid = rp.PopRaw<Common::UUID>(); |
|
|
|
|
|
|
|
|
auto uuid = rp.PopRaw<Common::NewUUID>(); |
|
|
|
|
|
|
|
|
LOG_DEBUG(Service_Friend, "called, uuid=0x{}", uuid.Format()); |
|
|
|
|
|
|
|
|
LOG_DEBUG(Service_Friend, "called, uuid=0x{}", uuid.RawString()); |
|
|
|
|
|
|
|
|
IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
|
|
IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
|
|
rb.Push(ResultSuccess); |
|
|
rb.Push(ResultSuccess); |
|
|
|