From 9e1c3e1dfc83446555deeaafdfb2057366f3d9bc Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Wed, 7 Jan 2015 22:24:59 -0800 Subject: [PATCH] Putting something at 0x40000000. --- src/xenia/memory.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/memory.cc b/src/xenia/memory.cc index 7f387e07a..ccbb8e85e 100644 --- a/src/xenia/memory.cc +++ b/src/xenia/memory.cc @@ -201,6 +201,11 @@ int Memory::Initialize() { return 1; } + // I have no idea what this is, but games try to read/write there. + VirtualAlloc(Translate(0x40000000), 0x00010000, MEM_COMMIT, PAGE_READWRITE); + StoreI32(0x40000000, 0x00C40000); + StoreI32(0x40000004, 0x00010000); + return 0; }