aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/ProgramLoader.cs
diff options
context:
space:
mode:
authorCaian Benedicto <caianbene@gmail.com>2021-08-04 17:05:17 -0300
committerGitHub <noreply@github.com>2021-08-04 22:05:17 +0200
commitff8849671af5ac14fc9cc9d37da30f53d3f13d89 (patch)
tree636e4e249084b20b871c158fdb8ff4f2b03f36e0 /Ryujinx.HLE/HOS/ProgramLoader.cs
parenta27986c31167d8ce60efcee7e901da241f63ed08 (diff)
Update TamperMachine and disable write-to-code prevention (#2506)
* Enable write to memory and improve logging * Update tamper machine opcodes and improve reporting * Add Else support * Add missing private statement
Diffstat (limited to 'Ryujinx.HLE/HOS/ProgramLoader.cs')
-rw-r--r--Ryujinx.HLE/HOS/ProgramLoader.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/ProgramLoader.cs b/Ryujinx.HLE/HOS/ProgramLoader.cs
index 93ddd7ee..385b4af5 100644
--- a/Ryujinx.HLE/HOS/ProgramLoader.cs
+++ b/Ryujinx.HLE/HOS/ProgramLoader.cs
@@ -280,7 +280,8 @@ namespace Ryujinx.HLE.HOS
// Keep the build ids because the tamper machine uses them to know which process to associate a
// tamper to and also keep the starting address of each executable inside a process because some
// memory modifications are relative to this address.
- tamperInfo = new ProcessTamperInfo(process, buildIds, nsoBase, process.MemoryManager.HeapRegionStart);
+ tamperInfo = new ProcessTamperInfo(process, buildIds, nsoBase, process.MemoryManager.HeapRegionStart,
+ process.MemoryManager.AliasRegionStart, process.MemoryManager.CodeRegionStart);
return true;
}