Skip to content

Commit

Permalink
Use correct uncached address in mp2000 patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Gericom committed Jan 1, 2020
1 parent bad46f4 commit 0e20ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arm9/source/gamePatches.vram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void gptc_patchRom()
u32 oldVal = *pSoundAreaPtr;
//relocate SoundArea to uncached main memory
if (oldVal >= 0x02000000 && oldVal < 0x04000000)
*pSoundAreaPtr = (u32)&vram_cd->mp2000SoundArea[0] | 0x00800000;
*pSoundAreaPtr = (u32)&vram_cd->mp2000SoundArea[0] + UNCACHED_OFFSET;
}

u32 gameCode = *(u32*)(MAIN_MEMORY_ADDRESS_ROM_DATA + 0xAC);
Expand Down

0 comments on commit 0e20ee5

Please sign in to comment.