mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-24 19:22:22 -05:00
ReadBytes function in AMemory, with cleaner range check. (#136)
This commit is contained in:
@@ -97,8 +97,8 @@ namespace Ryujinx.Core.OsHle.Services.Set
|
||||
long ReplyPos = Context.Request.ReceiveBuff[0].Position;
|
||||
long ReplySize = Context.Request.ReceiveBuff[0].Size;
|
||||
|
||||
byte[] Class = AMemoryHelper.ReadBytes(Context.Memory, ClassPos, ClassSize);
|
||||
byte[] Name = AMemoryHelper.ReadBytes(Context.Memory, NamePos, NameSize);
|
||||
byte[] Class = Context.Memory.ReadBytes(ClassPos, ClassSize);
|
||||
byte[] Name = Context.Memory.ReadBytes(NamePos, NameSize);
|
||||
|
||||
string AskedSetting = Encoding.ASCII.GetString(Class).Trim('\0') + "!" + Encoding.ASCII.GetString(Name).Trim('\0');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user