diff options
| author | riperiperi <rhy3756547@hotmail.com> | 2018-06-09 01:15:02 +0100 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-06-08 21:15:02 -0300 |
| commit | 6fe51f970501fe732276c17ed0dacb564b92a73d (patch) | |
| tree | 0c18f8b4422399f90726d93269c62ae7228d6d4c /Ryujinx.Core/OsHle/Services/Set | |
| parent | 39ebb83453245004fe3d9bd7ede9dc05b94e7e0e (diff) | |
ReadBytes function in AMemory, with cleaner range check. (#136)
Diffstat (limited to 'Ryujinx.Core/OsHle/Services/Set')
| -rw-r--r-- | Ryujinx.Core/OsHle/Services/Set/ISystemSettingsServer.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Core/OsHle/Services/Set/ISystemSettingsServer.cs b/Ryujinx.Core/OsHle/Services/Set/ISystemSettingsServer.cs index 26d67693..82094291 100644 --- a/Ryujinx.Core/OsHle/Services/Set/ISystemSettingsServer.cs +++ b/Ryujinx.Core/OsHle/Services/Set/ISystemSettingsServer.cs @@ -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'); |
