aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/Loaders/Executable.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-06-09 13:05:41 -0300
committergdkchan <gab.dark.100@gmail.com>2018-06-09 13:05:41 -0300
commit7f5a8effbb0bbf7e972dbbfb6792cdea48455739 (patch)
tree1e498d073ccbf7692ad57aeee191d2280d8656fb /Ryujinx.Core/Loaders/Executable.cs
parent91420a402c9e786ddef2811bb671003dd0a40565 (diff)
Move WriteBytes to AMemory, implement it with a Marshal copy like ReadBytes, fix regression on address range checking
Diffstat (limited to 'Ryujinx.Core/Loaders/Executable.cs')
-rw-r--r--Ryujinx.Core/Loaders/Executable.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Core/Loaders/Executable.cs b/Ryujinx.Core/Loaders/Executable.cs
index ab7e1979..213679a5 100644
--- a/Ryujinx.Core/Loaders/Executable.cs
+++ b/Ryujinx.Core/Loaders/Executable.cs
@@ -102,7 +102,7 @@ namespace Ryujinx.Core.Loaders
{
Memory.Manager.Map(Position, Data.Length, (int)Type, AMemoryPerm.Write);
- AMemoryHelper.WriteBytes(Memory, Position, Data);
+ Memory.WriteBytes(Position, Data);
Memory.Manager.Reprotect(Position, Data.Length, Perm);
}