diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-04 05:15:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 05:15:03 +0200 |
commit | 29fce1a1872909f7200a3b727adcc3dfb71013a1 (patch) | |
tree | 66cc98f31a0c4f36f6e77059b943c26d1ac6b984 /src/core/hle/service/acc/acc.cpp | |
parent | settings: Add anisotropic filtering level to the yuzu configuration log (#3875) (diff) | |
parent | acc: Return a unique value per account for GetAccountId (diff) | |
download | yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.tar yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.tar.gz yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.tar.bz2 yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.tar.lz yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.tar.xz yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.tar.zst yuzu-29fce1a1872909f7200a3b727adcc3dfb71013a1.zip |
Diffstat (limited to 'src/core/hle/service/acc/acc.cpp')
-rw-r--r-- | src/core/hle/service/acc/acc.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 9a7992f58..630a8b048 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -228,7 +228,8 @@ public: class IManagerForApplication final : public ServiceFramework<IManagerForApplication> { public: - IManagerForApplication() : ServiceFramework("IManagerForApplication") { + explicit IManagerForApplication(Common::UUID user_id) + : ServiceFramework("IManagerForApplication"), user_id(user_id) { // clang-format off static const FunctionInfo functions[] = { {0, &IManagerForApplication::CheckAvailability, "CheckAvailability"}, @@ -254,12 +255,14 @@ private: } void GetAccountId(Kernel::HLERequestContext& ctx) { - LOG_WARNING(Service_ACC, "(STUBBED) called"); - // Should return a nintendo account ID + LOG_DEBUG(Service_ACC, "called"); + IPC::ResponseBuilder rb{ctx, 4}; rb.Push(RESULT_SUCCESS); - rb.PushRaw<u64>(1); + rb.PushRaw<u64>(user_id.GetNintendoID()); } + + Common::UUID user_id; }; void Module::Interface::GetUserCount(Kernel::HLERequestContext& ctx) { @@ -382,7 +385,7 @@ void Module::Interface::GetBaasAccountManagerForApplication(Kernel::HLERequestCo LOG_DEBUG(Service_ACC, "called"); IPC::ResponseBuilder rb{ctx, 2, 0, 1}; rb.Push(RESULT_SUCCESS); - rb.PushIpcInterface<IManagerForApplication>(); + rb.PushIpcInterface<IManagerForApplication>(profile_manager->GetLastOpenedUser()); } void Module::Interface::IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx) { |