|
@@ -246,16 +246,12 @@ namespace Ryujinx.HLE.HOS.Ipc
|
|
|
// ReSharper disable once InconsistentNaming
|
|
// ReSharper disable once InconsistentNaming
|
|
|
public (ulong Position, ulong Size) GetBufferType0x21(int index = 0)
|
|
public (ulong Position, ulong Size) GetBufferType0x21(int index = 0)
|
|
|
{
|
|
{
|
|
|
- if (PtrBuff.Count > index &&
|
|
|
|
|
- PtrBuff[index].Position != 0 &&
|
|
|
|
|
- PtrBuff[index].Size != 0)
|
|
|
|
|
|
|
+ if (PtrBuff.Count > index && PtrBuff[index].Position != 0)
|
|
|
{
|
|
{
|
|
|
return (PtrBuff[index].Position, PtrBuff[index].Size);
|
|
return (PtrBuff[index].Position, PtrBuff[index].Size);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (SendBuff.Count > index &&
|
|
|
|
|
- SendBuff[index].Position != 0 &&
|
|
|
|
|
- SendBuff[index].Size != 0)
|
|
|
|
|
|
|
+ if (SendBuff.Count > index)
|
|
|
{
|
|
{
|
|
|
return (SendBuff[index].Position, SendBuff[index].Size);
|
|
return (SendBuff[index].Position, SendBuff[index].Size);
|
|
|
}
|
|
}
|
|
@@ -266,16 +262,12 @@ namespace Ryujinx.HLE.HOS.Ipc
|
|
|
// ReSharper disable once InconsistentNaming
|
|
// ReSharper disable once InconsistentNaming
|
|
|
public (ulong Position, ulong Size) GetBufferType0x22(int index = 0)
|
|
public (ulong Position, ulong Size) GetBufferType0x22(int index = 0)
|
|
|
{
|
|
{
|
|
|
- if (RecvListBuff.Count > index &&
|
|
|
|
|
- RecvListBuff[index].Position != 0 &&
|
|
|
|
|
- RecvListBuff[index].Size != 0)
|
|
|
|
|
|
|
+ if (RecvListBuff.Count > index && RecvListBuff[index].Position != 0)
|
|
|
{
|
|
{
|
|
|
return (RecvListBuff[index].Position, RecvListBuff[index].Size);
|
|
return (RecvListBuff[index].Position, RecvListBuff[index].Size);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (ReceiveBuff.Count > index &&
|
|
|
|
|
- ReceiveBuff[index].Position != 0 &&
|
|
|
|
|
- ReceiveBuff[index].Size != 0)
|
|
|
|
|
|
|
+ if (ReceiveBuff.Count > index)
|
|
|
{
|
|
{
|
|
|
return (ReceiveBuff[index].Position, ReceiveBuff[index].Size);
|
|
return (ReceiveBuff[index].Position, ReceiveBuff[index].Size);
|
|
|
}
|
|
}
|