diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-08 04:39:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 04:39:12 +0200 |
commit | 2bc296801a4f954b0757d03f92e02e743a90c04e (patch) | |
tree | 137dc59f5dce3d0be1b1e0d7797a0094df304280 /src | |
parent | Merge pull request #967 from lioncash/sign (diff) | |
download | yuzu-2bc296801a4f954b0757d03f92e02e743a90c04e.tar yuzu-2bc296801a4f954b0757d03f92e02e743a90c04e.tar.gz yuzu-2bc296801a4f954b0757d03f92e02e743a90c04e.tar.bz2 yuzu-2bc296801a4f954b0757d03f92e02e743a90c04e.tar.lz yuzu-2bc296801a4f954b0757d03f92e02e743a90c04e.tar.xz yuzu-2bc296801a4f954b0757d03f92e02e743a90c04e.tar.zst yuzu-2bc296801a4f954b0757d03f92e02e743a90c04e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/acc/acc.cpp | 7 | ||||
-rw-r--r-- | src/core/hle/service/acc/acc.h | 1 | ||||
-rw-r--r-- | src/core/hle/service/acc/acc_u0.cpp | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 6d15b46ed..e952b0518 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -119,6 +119,13 @@ private: } }; +void Module::Interface::GetUserCount(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_ACC, "(STUBBED) called"); + IPC::ResponseBuilder rb{ctx, 3}; + rb.Push(RESULT_SUCCESS); + rb.Push<u32>(1); +} + void Module::Interface::GetUserExistence(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_ACC, "(STUBBED) called"); IPC::ResponseBuilder rb{ctx, 3}; diff --git a/src/core/hle/service/acc/acc.h b/src/core/hle/service/acc/acc.h index 0a01d954c..88cabaa01 100644 --- a/src/core/hle/service/acc/acc.h +++ b/src/core/hle/service/acc/acc.h @@ -14,6 +14,7 @@ public: public: explicit Interface(std::shared_ptr<Module> module, const char* name); + void GetUserCount(Kernel::HLERequestContext& ctx); void GetUserExistence(Kernel::HLERequestContext& ctx); void ListAllUsers(Kernel::HLERequestContext& ctx); void ListOpenUsers(Kernel::HLERequestContext& ctx); diff --git a/src/core/hle/service/acc/acc_u0.cpp b/src/core/hle/service/acc/acc_u0.cpp index 44e21ac09..d84c8b2e1 100644 --- a/src/core/hle/service/acc/acc_u0.cpp +++ b/src/core/hle/service/acc/acc_u0.cpp @@ -8,7 +8,7 @@ namespace Service::Account { ACC_U0::ACC_U0(std::shared_ptr<Module> module) : Module::Interface(std::move(module), "acc:u0") { static const FunctionInfo functions[] = { - {0, nullptr, "GetUserCount"}, + {0, &ACC_U0::GetUserCount, "GetUserCount"}, {1, &ACC_U0::GetUserExistence, "GetUserExistence"}, {2, &ACC_U0::ListAllUsers, "ListAllUsers"}, {3, &ACC_U0::ListOpenUsers, "ListOpenUsers"}, |