mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-07-16 07:54:18 +00:00
ReadBytes function in AMemory, with cleaner range check. (#136)
This commit is contained in:
@@ -49,7 +49,7 @@ namespace Ryujinx.Core.OsHle.Services.Am
|
||||
Size = MaxSize;
|
||||
}
|
||||
|
||||
byte[] Data = AMemoryHelper.ReadBytes(Context.Memory, Position, Size);
|
||||
byte[] Data = Context.Memory.ReadBytes(Position, Size);
|
||||
|
||||
Buffer.BlockCopy(Data, 0, Storage.Data, (int)WritePosition, (int)Size);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user