summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-02-21 15:22:51 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-02-21 16:29:25 +0100
commit3de8e7a8f234ddb23c0f241b72207424bf960c18 (patch)
tree115c35cef5302280a03f6d188c82cfec1e10ecd8 /src/core/hle/service
parentMerge pull request #5971 from ameerj/reslimit-dtor (diff)
downloadyuzu-3de8e7a8f234ddb23c0f241b72207424bf960c18.tar
yuzu-3de8e7a8f234ddb23c0f241b72207424bf960c18.tar.gz
yuzu-3de8e7a8f234ddb23c0f241b72207424bf960c18.tar.bz2
yuzu-3de8e7a8f234ddb23c0f241b72207424bf960c18.tar.lz
yuzu-3de8e7a8f234ddb23c0f241b72207424bf960c18.tar.xz
yuzu-3de8e7a8f234ddb23c0f241b72207424bf960c18.tar.zst
yuzu-3de8e7a8f234ddb23c0f241b72207424bf960c18.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/acc/acc.cpp18
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};