diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-06-09 13:05:41 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-06-09 13:05:41 -0300 |
| commit | 7f5a8effbb0bbf7e972dbbfb6792cdea48455739 (patch) | |
| tree | 1e498d073ccbf7692ad57aeee191d2280d8656fb /Ryujinx.Core/OsHle/Services/Bsd | |
| parent | 91420a402c9e786ddef2811bb671003dd0a40565 (diff) | |
Move WriteBytes to AMemory, implement it with a Marshal copy like ReadBytes, fix regression on address range checking
Diffstat (limited to 'Ryujinx.Core/OsHle/Services/Bsd')
| -rw-r--r-- | Ryujinx.Core/OsHle/Services/Bsd/IClient.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Ryujinx.Core/OsHle/Services/Bsd/IClient.cs b/Ryujinx.Core/OsHle/Services/Bsd/IClient.cs index 0c0eeb5a..fe46d681 100644 --- a/Ryujinx.Core/OsHle/Services/Bsd/IClient.cs +++ b/Ryujinx.Core/OsHle/Services/Bsd/IClient.cs @@ -1,4 +1,3 @@ -using ChocolArm64.Memory; using Ryujinx.Core.OsHle.Ipc; using Ryujinx.Core.OsHle.Utilities; using System.Collections.Generic; @@ -131,7 +130,7 @@ namespace Ryujinx.Core.OsHle.Services.Bsd //Logging.Debug("Received Buffer:" + Environment.NewLine + Logging.HexDump(ReceivedBuffer)); - AMemoryHelper.WriteBytes(Context.Memory, Context.Request.ReceiveBuff[0].Position, ReceivedBuffer); + Context.Memory.WriteBytes(Context.Request.ReceiveBuff[0].Position, ReceivedBuffer); Context.ResponseData.Write(BytesRead); Context.ResponseData.Write(0); @@ -266,7 +265,7 @@ namespace Ryujinx.Core.OsHle.Services.Bsd Writer.Write(IpAddress); - AMemoryHelper.WriteBytes(Context.Memory, AddrBufferPtr, MS.ToArray()); + Context.Memory.WriteBytes(AddrBufferPtr, MS.ToArray()); Context.ResponseData.Write(Sockets.Count - 1); Context.ResponseData.Write(0); |
