mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-24 15:37:10 +02:00
ReadBytes function in AMemory, with cleaner range check. (#136)
This commit is contained in:
parent
39ebb83453
commit
6fe51f9705
12 changed files with 46 additions and 47 deletions
|
@ -41,7 +41,7 @@ namespace Ryujinx.Core.OsHle.Services.Vi
|
|||
long DataPos = Context.Request.SendBuff[0].Position;
|
||||
long DataSize = Context.Request.SendBuff[0].Size;
|
||||
|
||||
byte[] Data = AMemoryHelper.ReadBytes(Context.Memory, DataPos, DataSize);
|
||||
byte[] Data = Context.Memory.ReadBytes(DataPos, DataSize);
|
||||
|
||||
Data = Parcel.GetParcelData(Data);
|
||||
|
||||
|
@ -55,7 +55,7 @@ namespace Ryujinx.Core.OsHle.Services.Vi
|
|||
|
||||
(long DataPos, long DataSize) = Context.Request.GetBufferType0x21();
|
||||
|
||||
byte[] Data = AMemoryHelper.ReadBytes(Context.Memory, DataPos, DataSize);
|
||||
byte[] Data = Context.Memory.ReadBytes(DataPos, DataSize);
|
||||
|
||||
Data = Parcel.GetParcelData(Data);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue