aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/Ipc
diff options
context:
space:
mode:
authorStarlet <gpyron@mail.com>2018-06-02 18:46:09 -0400
committergdkchan <gab.dark.100@gmail.com>2018-06-02 19:46:09 -0300
commit250e2084f4cc274ce8a68096f382768cfc03f0e0 (patch)
tree3fca0108b2b746a93600498564a872e6ab0a1566 /Ryujinx.Core/OsHle/Ipc
parentf03a43fa3850b2b645f8899a775f873a3f6a1d60 (diff)
SMO stubs and implementations (#129)
* WIP SMO stubs and implementations * fixes? * Add StorageHelper * Whoops * Compliant with review. * Remove unnecessary usings
Diffstat (limited to 'Ryujinx.Core/OsHle/Ipc')
-rw-r--r--Ryujinx.Core/OsHle/Ipc/IpcMessage.cs24
1 files changed, 12 insertions, 12 deletions
diff --git a/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs b/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs
index afcbb3a4..c985a4bb 100644
--- a/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs
+++ b/Ryujinx.Core/OsHle/Ipc/IpcMessage.cs
@@ -174,34 +174,34 @@ namespace Ryujinx.Core.OsHle.Ipc
return 0;
}
- public long GetBufferType0x21Position()
+ public (long Position, long Size) GetBufferType0x21()
{
- if (PtrBuff.Count > 0 && PtrBuff[0].Position != 0)
+ if (PtrBuff.Count > 0 && PtrBuff[0].Position != 0 && PtrBuff[0].Size != 0)
{
- return PtrBuff[0].Position;
+ return (PtrBuff[0].Position, PtrBuff[0].Size);
}
- if (SendBuff.Count > 0)
+ if (SendBuff.Count > 0 && SendBuff[0].Position != 0 && SendBuff[0].Size != 0)
{
- return SendBuff[0].Position;
+ return (SendBuff[0].Position, SendBuff[0].Size);
}
- return 0;
+ return (0, 0);
}
- public long GetBufferType0x22Position()
+ public (long Position, long Size) GetBufferType0x22()
{
- if (RecvListBuff.Count > 0 && RecvListBuff[0].Position != 0)
+ if (RecvListBuff.Count > 0 && RecvListBuff[0].Position != 0 && RecvListBuff[0].Size != 0)
{
- return RecvListBuff[0].Position;
+ return (RecvListBuff[0].Position, RecvListBuff[0].Size);
}
- if (ReceiveBuff.Count > 0)
+ if (ReceiveBuff.Count > 0 && ReceiveBuff[0].Position != 0 && ReceiveBuff[0].Size != 0)
{
- return ReceiveBuff[0].Position;
+ return (ReceiveBuff[0].Position, ReceiveBuff[0].Size);
}
- return 0;
+ return (0, 0);
}
}
}