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/Ipc | |
| parent | 06057a99a653b83389447a9c56d926c463317b47 (diff) | |
Rewrite size for fixed size buffers (#1808)
Diffstat (limited to 'Ryujinx.HLE/HOS/Ipc')
| -rw-r--r-- | Ryujinx.HLE/HOS/Ipc/IpcPtrBuffDesc.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Ipc/IpcPtrBuffDesc.cs b/Ryujinx.HLE/HOS/Ipc/IpcPtrBuffDesc.cs index c17f248f..67cf17c9 100644 --- a/Ryujinx.HLE/HOS/Ipc/IpcPtrBuffDesc.cs +++ b/Ryujinx.HLE/HOS/Ipc/IpcPtrBuffDesc.cs @@ -30,6 +30,11 @@ namespace Ryujinx.HLE.HOS.Ipc Size = (ushort)(word0 >> 16); } + public IpcPtrBuffDesc WithSize(long size) + { + return new IpcPtrBuffDesc(Position, Index, size); + } + public uint GetWord0() { uint word0; |
