summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Liam2024-02-24 12:18:51 -0500
committerGravatar Liam2024-02-24 22:25:34 -0500
commitf297e98a9ecdcf15861310acbaef3b1624552533 (patch)
tree6969b08583d9214e4251a7313ca9d2790b5b865b /src
parentfs: add stubs for online web applet (diff)
downloadyuzu-f297e98a9ecdcf15861310acbaef3b1624552533.tar.gz
yuzu-f297e98a9ecdcf15861310acbaef3b1624552533.tar.xz
yuzu-f297e98a9ecdcf15861310acbaef3b1624552533.zip
acc: add account manager for acc:u1
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/acc/acc.cpp23
-rw-r--r--src/core/hle/service/acc/acc_u1.cpp2
2 files changed, 16 insertions, 9 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp
index f21553644..fad111d44 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -25,8 +25,8 @@
25#include "core/hle/service/acc/async_context.h" 25#include "core/hle/service/acc/async_context.h"
26#include "core/hle/service/acc/errors.h" 26#include "core/hle/service/acc/errors.h"
27#include "core/hle/service/acc/profile_manager.h" 27#include "core/hle/service/acc/profile_manager.h"
28#include "core/hle/service/cmif_serialization.h"
28#include "core/hle/service/glue/glue_manager.h" 29#include "core/hle/service/glue/glue_manager.h"
29#include "core/hle/service/ipc_helpers.h"
30#include "core/hle/service/server_manager.h" 30#include "core/hle/service/server_manager.h"
31#include "core/loader/loader.h" 31#include "core/loader/loader.h"
32 32
@@ -74,12 +74,12 @@ static void SanitizeJPEGImageSize(std::vector<u8>& image) {
74 74
75class IManagerForSystemService final : public ServiceFramework<IManagerForSystemService> { 75class IManagerForSystemService final : public ServiceFramework<IManagerForSystemService> {
76public: 76public:
77 explicit IManagerForSystemService(Core::System& system_, Common::UUID) 77 explicit IManagerForSystemService(Core::System& system_, Common::UUID uuid)
78 : ServiceFramework{system_, "IManagerForSystemService"} { 78 : ServiceFramework{system_, "IManagerForSystemService"}, account_id{uuid} {
79 // clang-format off 79 // clang-format off
80 static const FunctionInfo functions[] = { 80 static const FunctionInfo functions[] = {
81 {0, &IManagerForSystemService::CheckAvailability, "CheckAvailability"}, 81 {0, D<&IManagerForSystemService::CheckAvailability>, "CheckAvailability"},
82 {1, nullptr, "GetAccountId"}, 82 {1, D<&IManagerForSystemService::GetAccountId>, "GetAccountId"},
83 {2, nullptr, "EnsureIdTokenCacheAsync"}, 83 {2, nullptr, "EnsureIdTokenCacheAsync"},
84 {3, nullptr, "LoadIdTokenCache"}, 84 {3, nullptr, "LoadIdTokenCache"},
85 {100, nullptr, "SetSystemProgramIdentification"}, 85 {100, nullptr, "SetSystemProgramIdentification"},
@@ -109,11 +109,18 @@ public:
109 } 109 }
110 110
111private: 111private:
112 void CheckAvailability(HLERequestContext& ctx) { 112 Result CheckAvailability() {
113 LOG_WARNING(Service_ACC, "(STUBBED) called"); 113 LOG_WARNING(Service_ACC, "(STUBBED) called");
114 IPC::ResponseBuilder rb{ctx, 2}; 114 R_SUCCEED();
115 rb.Push(ResultSuccess);
116 } 115 }
116
117 Result GetAccountId(Out<u64> out_account_id) {
118 LOG_WARNING(Service_ACC, "(STUBBED) called");
119 *out_account_id = account_id.Hash();
120 R_SUCCEED();
121 }
122
123 Common::UUID account_id;
117}; 124};
118 125
119// 3.0.0+ 126// 3.0.0+
diff --git a/src/core/hle/service/acc/acc_u1.cpp b/src/core/hle/service/acc/acc_u1.cpp
index 92f704c2f..eecc94387 100644
--- a/src/core/hle/service/acc/acc_u1.cpp
+++ b/src/core/hle/service/acc/acc_u1.cpp
@@ -23,7 +23,7 @@ ACC_U1::ACC_U1(std::shared_ptr<Module> module_, std::shared_ptr<ProfileManager>
23 {99, nullptr, "DebugActivateOpenContextRetention"}, 23 {99, nullptr, "DebugActivateOpenContextRetention"},
24 {100, nullptr, "GetUserRegistrationNotifier"}, 24 {100, nullptr, "GetUserRegistrationNotifier"},
25 {101, nullptr, "GetUserStateChangeNotifier"}, 25 {101, nullptr, "GetUserStateChangeNotifier"},
26 {102, nullptr, "GetBaasAccountManagerForSystemService"}, 26 {102, &ACC_U1::GetBaasAccountManagerForSystemService, "GetBaasAccountManagerForSystemService"},
27 {103, nullptr, "GetBaasUserAvailabilityChangeNotifier"}, 27 {103, nullptr, "GetBaasUserAvailabilityChangeNotifier"},
28 {104, nullptr, "GetProfileUpdateNotifier"}, 28 {104, nullptr, "GetProfileUpdateNotifier"},
29 {105, nullptr, "CheckNetworkServiceAvailabilityAsync"}, 29 {105, nullptr, "CheckNetworkServiceAvailabilityAsync"},