Some games seem to write to 0x0... damn.

This commit is contained in:
Ben Vanik 2013-12-15 15:31:32 -08:00
parent 9fdacebf2d
commit f9cd87811d
1 changed files with 3 additions and 2 deletions

View File

@ -197,9 +197,10 @@ int XenonMemory::Initialize() {
XENON_MEMORY_PHYSICAL_HEAP_LOW, XENON_MEMORY_PHYSICAL_HEAP_HIGH);
// GPU writeback.
// 0xC... is physical, 0x7F... is virtual. We may need to overlay these.
VirtualAlloc(
Translate(0xC0000000 + system_page_size_),
0x00100000 - system_page_size_,
Translate(0xC0000000),
0x00100000,
MEM_COMMIT, PAGE_READWRITE);
return 0;