From 47f079d23eb313a600d1e319b7ee687a06d9aff7 Mon Sep 17 00:00:00 2001 From: Thog Date: Mon, 2 Mar 2020 15:07:27 +0100 Subject: [PATCH] stub GetNintendoAccountUserResourceCacheForApplication (#962) --- .../Account/Acc/IManagerForApplication.cs | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs b/Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs index d26a79da0..801eae6a9 100644 --- a/Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs +++ b/Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs @@ -8,6 +8,8 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc private UserId _userId; private ApplicationLaunchProperty _applicationLaunchProperty; + private const long NetworkServiceAccountId = 0xcafe; + public IManagerForApplication(UserId userId, ApplicationLaunchProperty applicationLaunchProperty) { _userId = userId; @@ -27,11 +29,22 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc // GetAccountId() -> nn::account::NetworkServiceAccountId public ResultCode GetAccountId(ServiceCtx context) { - long networkServiceAccountId = 0xcafe; + Logger.PrintStub(LogClass.ServiceAcc, new { NetworkServiceAccountId }); - Logger.PrintStub(LogClass.ServiceAcc, new { networkServiceAccountId }); + context.ResponseData.Write(NetworkServiceAccountId); - context.ResponseData.Write(networkServiceAccountId); + return ResultCode.Success; + } + + [Command(130)] + // GetNintendoAccountUserResourceCacheForApplication() -> (nn::account::NintendoAccountId, buffer, buffer) + public ResultCode GetNintendoAccountUserResourceCacheForApplication(ServiceCtx context) + { + Logger.PrintStub(LogClass.ServiceAcc, new { NetworkServiceAccountId }); + + context.ResponseData.Write(NetworkServiceAccountId); + + // TODO: determine and fill the two output IPC buffers. return ResultCode.Success; }