mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-30 23:22:26 -05:00
ReadBytes function in AMemory, with cleaner range check. (#136)
This commit is contained in:
@@ -62,7 +62,7 @@ namespace Ryujinx.Core.OsHle.Services.FspSrv
|
||||
long Offset = Context.RequestData.ReadInt64();
|
||||
long Size = Context.RequestData.ReadInt64();
|
||||
|
||||
byte[] Data = AMemoryHelper.ReadBytes(Context.Memory, Position, Size);
|
||||
byte[] Data = Context.Memory.ReadBytes(Position, Size);
|
||||
|
||||
BaseStream.Seek(Offset, SeekOrigin.Begin);
|
||||
BaseStream.Write(Data, 0, (int)Size);
|
||||
|
||||
Reference in New Issue
Block a user