diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/acc/acc_u0.cpp | 11 | ||||
| -rw-r--r-- | src/core/hle/service/acc/acc_u0.h | 1 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/core/hle/service/acc/acc_u0.cpp b/src/core/hle/service/acc/acc_u0.cpp index 7955f726b..52c3491d5 100644 --- a/src/core/hle/service/acc/acc_u0.cpp +++ b/src/core/hle/service/acc/acc_u0.cpp | |||
| @@ -65,11 +65,19 @@ void ACC_U0::GetUserExistence(Kernel::HLERequestContext& ctx) { | |||
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void ACC_U0::ListAllUsers(Kernel::HLERequestContext& ctx) { | 67 | void ACC_U0::ListAllUsers(Kernel::HLERequestContext& ctx) { |
| 68 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | ||
| 69 | constexpr std::array<u128, 10> user_ids{DEFAULT_USER_ID}; | ||
| 70 | ctx.WriteBuffer(user_ids.data(), user_ids.size()); | ||
| 71 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 72 | rb.Push(RESULT_SUCCESS); | ||
| 73 | } | ||
| 74 | |||
| 75 | void ACC_U0::ListOpenUsers(Kernel::HLERequestContext& ctx) { | ||
| 76 | LOG_WARNING(Service_ACC, "(STUBBED) called"); | ||
| 68 | constexpr std::array<u128, 10> user_ids{DEFAULT_USER_ID}; | 77 | constexpr std::array<u128, 10> user_ids{DEFAULT_USER_ID}; |
| 69 | ctx.WriteBuffer(user_ids.data(), user_ids.size()); | 78 | ctx.WriteBuffer(user_ids.data(), user_ids.size()); |
| 70 | IPC::ResponseBuilder rb{ctx, 2}; | 79 | IPC::ResponseBuilder rb{ctx, 2}; |
| 71 | rb.Push(RESULT_SUCCESS); | 80 | rb.Push(RESULT_SUCCESS); |
| 72 | LOG_DEBUG(Service_ACC, "called"); | ||
| 73 | } | 81 | } |
| 74 | 82 | ||
| 75 | void ACC_U0::GetProfile(Kernel::HLERequestContext& ctx) { | 83 | void ACC_U0::GetProfile(Kernel::HLERequestContext& ctx) { |
| @@ -103,6 +111,7 @@ ACC_U0::ACC_U0() : ServiceFramework("acc:u0") { | |||
| 103 | static const FunctionInfo functions[] = { | 111 | static const FunctionInfo functions[] = { |
| 104 | {1, &ACC_U0::GetUserExistence, "GetUserExistence"}, | 112 | {1, &ACC_U0::GetUserExistence, "GetUserExistence"}, |
| 105 | {2, &ACC_U0::ListAllUsers, "ListAllUsers"}, | 113 | {2, &ACC_U0::ListAllUsers, "ListAllUsers"}, |
| 114 | {3, &ACC_U0::ListOpenUsers, "ListOpenUsers"}, | ||
| 106 | {4, &ACC_U0::GetLastOpenedUser, "GetLastOpenedUser"}, | 115 | {4, &ACC_U0::GetLastOpenedUser, "GetLastOpenedUser"}, |
| 107 | {5, &ACC_U0::GetProfile, "GetProfile"}, | 116 | {5, &ACC_U0::GetProfile, "GetProfile"}, |
| 108 | {100, &ACC_U0::InitializeApplicationInfo, "InitializeApplicationInfo"}, | 117 | {100, &ACC_U0::InitializeApplicationInfo, "InitializeApplicationInfo"}, |
diff --git a/src/core/hle/service/acc/acc_u0.h b/src/core/hle/service/acc/acc_u0.h index d7732e75b..222f37282 100644 --- a/src/core/hle/service/acc/acc_u0.h +++ b/src/core/hle/service/acc/acc_u0.h | |||
| @@ -29,6 +29,7 @@ public: | |||
| 29 | private: | 29 | private: |
| 30 | void GetUserExistence(Kernel::HLERequestContext& ctx); | 30 | void GetUserExistence(Kernel::HLERequestContext& ctx); |
| 31 | void ListAllUsers(Kernel::HLERequestContext& ctx); | 31 | void ListAllUsers(Kernel::HLERequestContext& ctx); |
| 32 | void ListOpenUsers(Kernel::HLERequestContext& ctx); | ||
| 32 | void GetLastOpenedUser(Kernel::HLERequestContext& ctx); | 33 | void GetLastOpenedUser(Kernel::HLERequestContext& ctx); |
| 33 | void GetProfile(Kernel::HLERequestContext& ctx); | 34 | void GetProfile(Kernel::HLERequestContext& ctx); |
| 34 | void InitializeApplicationInfo(Kernel::HLERequestContext& ctx); | 35 | void InitializeApplicationInfo(Kernel::HLERequestContext& ctx); |