Putting something at 0x40000000.

This commit is contained in:
Ben Vanik 2015-01-07 22:24:59 -08:00
parent 6eb9c3c9e5
commit 9e1c3e1dfc
1 changed files with 5 additions and 0 deletions

View File

@ -201,6 +201,11 @@ int Memory::Initialize() {
return 1; 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; return 0;
} }