aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/Ipc
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-06-02 20:40:26 -0300
committergdkchan <gab.dark.100@gmail.com>2018-06-02 20:40:26 -0300
commite7efee7909650e9b747e0f26efebbfc1b32a078e (patch)
treee836a3ea7ffa41384ff8ac8ab3d9020bae2c2842 /Ryujinx.Core/OsHle/Ipc
parent250e2084f4cc274ce8a68096f382768cfc03f0e0 (diff)
Use GetBufferType0x21 on TransactParcelAuto aswell
Diffstat (limited to 'Ryujinx.Core/OsHle/Ipc')
-rw-r--r--Ryujinx.Core/OsHle/Ipc/IpcMessage.cs16
1 files changed, 12 insertions, 4 deletions
diff --git a/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs b/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs
index c985a4bb..c03874fb 100644
--- a/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs
+++ b/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs
@@ -176,12 +176,16 @@ namespace Ryujinx.Core.OsHle.Ipc
public (long Position, long Size) GetBufferType0x21()
{
- if (PtrBuff.Count > 0 && PtrBuff[0].Position != 0 && PtrBuff[0].Size != 0)
+ if (PtrBuff.Count != 0 &&
+ PtrBuff[0].Position != 0 &&
+ PtrBuff[0].Size != 0)
{
return (PtrBuff[0].Position, PtrBuff[0].Size);
}
- if (SendBuff.Count > 0 && SendBuff[0].Position != 0 && SendBuff[0].Size != 0)
+ if (SendBuff.Count != 0 &&
+ SendBuff[0].Position != 0 &&
+ SendBuff[0].Size != 0)
{
return (SendBuff[0].Position, SendBuff[0].Size);
}
@@ -191,12 +195,16 @@ namespace Ryujinx.Core.OsHle.Ipc
public (long Position, long Size) GetBufferType0x22()
{
- if (RecvListBuff.Count > 0 && RecvListBuff[0].Position != 0 && RecvListBuff[0].Size != 0)
+ if (RecvListBuff.Count != 0 &&
+ RecvListBuff[0].Position != 0 &&
+ RecvListBuff[0].Size != 0)
{
return (RecvListBuff[0].Position, RecvListBuff[0].Size);
}
- if (ReceiveBuff.Count > 0 && ReceiveBuff[0].Position != 0 && ReceiveBuff[0].Size != 0)
+ if (ReceiveBuff.Count != 0 &&
+ ReceiveBuff[0].Position != 0 &&
+ ReceiveBuff[0].Size != 0)
{
return (ReceiveBuff[0].Position, ReceiveBuff[0].Size);
}