aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThog <me@thog.eu>2020-03-02 15:07:27 +0100
committerGitHub <noreply@github.com>2020-03-03 01:07:27 +1100
commit47f079d23eb313a600d1e319b7ee687a06d9aff7 (patch)
treee1d8a68859113e27c939db652b9e35f0cf498aea
parent3b531de670a011c40b269eaba33e2fea8f438859 (diff)
stub GetNintendoAccountUserResourceCacheForApplication (#962)
-rw-r--r--Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs19
1 files 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 d26a79da..801eae6a 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 });
+
+ context.ResponseData.Write(NetworkServiceAccountId);
+
+ return ResultCode.Success;
+ }
+
+ [Command(130)]
+ // GetNintendoAccountUserResourceCacheForApplication() -> (nn::account::NintendoAccountId, buffer<nn::account::nas::NasUserBaseForApplication, 0x1a>, buffer<bytes, 6>)
+ public ResultCode GetNintendoAccountUserResourceCacheForApplication(ServiceCtx context)
+ {
+ Logger.PrintStub(LogClass.ServiceAcc, new { NetworkServiceAccountId });
- Logger.PrintStub(LogClass.ServiceAcc, new { networkServiceAccountId });
+ context.ResponseData.Write(NetworkServiceAccountId);
- context.ResponseData.Write(networkServiceAccountId);
+ // TODO: determine and fill the two output IPC buffers.
return ResultCode.Success;
}