From 7f5a8effbb0bbf7e972dbbfb6792cdea48455739 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 9 Jun 2018 13:05:41 -0300 Subject: Move WriteBytes to AMemory, implement it with a Marshal copy like ReadBytes, fix regression on address range checking --- Ryujinx.Core/Loaders/Executable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Ryujinx.Core/Loaders/Executable.cs') 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); } -- cgit v1.2.3