diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2020-12-12 00:06:20 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-12 14:06:20 +1100 |
| commit | 74aa7b20be5ef924f3e8cbde699fcf4f8431f750 (patch) | |
| tree | 173851ac0907333cf4b62467b1763fdbf9c8816a /Ryujinx.HLE/HOS/Services/Account | |
| parent | 06057a99a653b83389447a9c56d926c463317b47 (diff) | |
Rewrite size for fixed size buffers (#1808)
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Account')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs | 4 | ||||
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Account/Acc/IProfile.cs | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs b/Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs index 7e2b5d4f..734366dc 100644 --- a/Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs +++ b/Ryujinx.HLE/HOS/Services/Account/Acc/IManagerForApplication.cs @@ -41,7 +41,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc // GetAccountId() -> nn::account::NetworkServiceAccountId public ResultCode GetAccountId(ServiceCtx context) { - // NOTE: This opens the file at "su/baas/USERID_IN_UUID_STRING.dat" (where USERID_IN_UUID_STRING is formatted + // NOTE: This opens the file at "su/baas/USERID_IN_UUID_STRING.dat" (where USERID_IN_UUID_STRING is formatted // as "%08x-%04x-%04x-%02x%02x-%08x%04x") in the account:/ savedata. // Then it searches the NetworkServiceAccountId related to the UserId in this file and returns it. @@ -122,6 +122,8 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc context.ResponseData.Write(NetworkServiceAccountId); + context.Response.PtrBuff[0] = context.Response.PtrBuff[0].WithSize(0L); + // TODO: determine and fill the two output IPC buffers. return ResultCode.Success; diff --git a/Ryujinx.HLE/HOS/Services/Account/Acc/IProfile.cs b/Ryujinx.HLE/HOS/Services/Account/Acc/IProfile.cs index 32ee41d8..4b134c6f 100644 --- a/Ryujinx.HLE/HOS/Services/Account/Acc/IProfile.cs +++ b/Ryujinx.HLE/HOS/Services/Account/Acc/IProfile.cs @@ -24,6 +24,8 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc { Logger.Stub?.PrintStub(LogClass.ServiceAcc); + context.Response.PtrBuff[0] = context.Response.PtrBuff[0].WithSize(0x80L); + long position = context.Request.ReceiveBuff[0].Position; MemoryHelper.FillWithZeros(context.Memory, position, 0x80); |
