diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-25 01:46:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 01:46:15 +0100 |
commit | 1ba578c4aaa9b0d76f7036f3d8c38d087d803b7e (patch) | |
tree | 381cd7a5aea90f814cf6c047afb41eed4295fd01 /src/core/hle | |
parent | Merge pull request #5981 from lat9nq/ci-add-clang (diff) | |
parent | acc: Stub GetNintendoAccountUserResourceCacheForApplication (diff) | |
download | yuzu-1ba578c4aaa9b0d76f7036f3d8c38d087d803b7e.tar yuzu-1ba578c4aaa9b0d76f7036f3d8c38d087d803b7e.tar.gz yuzu-1ba578c4aaa9b0d76f7036f3d8c38d087d803b7e.tar.bz2 yuzu-1ba578c4aaa9b0d76f7036f3d8c38d087d803b7e.tar.lz yuzu-1ba578c4aaa9b0d76f7036f3d8c38d087d803b7e.tar.xz yuzu-1ba578c4aaa9b0d76f7036f3d8c38d087d803b7e.tar.zst yuzu-1ba578c4aaa9b0d76f7036f3d8c38d087d803b7e.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/acc/acc.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 3ec0e1eca..615e20a54 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp @@ -508,7 +508,7 @@ public: {1, &IManagerForApplication::GetAccountId, "GetAccountId"}, {2, nullptr, "EnsureIdTokenCacheAsync"}, {3, nullptr, "LoadIdTokenCache"}, - {130, nullptr, "GetNintendoAccountUserResourceCacheForApplication"}, + {130, &IManagerForApplication::GetNintendoAccountUserResourceCacheForApplication, "GetNintendoAccountUserResourceCacheForApplication"}, {150, nullptr, "CreateAuthorizationRequest"}, {160, &IManagerForApplication::StoreOpenContext, "StoreOpenContext"}, {170, nullptr, "LoadNetworkServiceLicenseKindAsync"}, @@ -534,6 +534,22 @@ private: rb.PushRaw<u64>(user_id.GetNintendoID()); } + void GetNintendoAccountUserResourceCacheForApplication(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_ACC, "(STUBBED) called"); + + std::vector<u8> nas_user_base_for_application(0x68); + ctx.WriteBuffer(nas_user_base_for_application, 0); + + if (ctx.CanWriteBuffer(1)) { + std::vector<u8> unknown_out_buffer(ctx.GetWriteBufferSize(1)); + ctx.WriteBuffer(unknown_out_buffer, 1); + } + + IPC::ResponseBuilder rb{ctx, 4}; + rb.Push(RESULT_SUCCESS); + rb.PushRaw<u64>(user_id.GetNintendoID()); + } + void StoreOpenContext(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_ACC, "(STUBBED) called"); IPC::ResponseBuilder rb{ctx, 2}; |