From 74aa7b20be5ef924f3e8cbde699fcf4f8431f750 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 12 Dec 2020 00:06:20 -0300 Subject: Rewrite size for fixed size buffers (#1808) --- Ryujinx.HLE/HOS/Ipc/IpcPtrBuffDesc.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Ryujinx.HLE/HOS/Ipc') 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; -- cgit v1.2.3