And clean up this GetPointer() while I'm here.

It will probally be replaced later.
This commit is contained in:
Scott Mansell 2014-10-29 23:59:32 +13:00
parent 3e47480470
commit b4e0328508
1 changed files with 2 additions and 4 deletions

View File

@ -461,9 +461,7 @@ void Decoder21_ReadAudio(ZeldaVoicePB &PB, int size, s16 *_Buffer)
// ACC0 is the address // ACC0 is the address
// ACC1 is the read size // ACC1 is the read size
const u32 ram_mask = 0x1FFFFFF; const u16* src = (u16*) Memory::GetPointer(ACC0 & Memory::RAM_MASK);
const u8 *source = Memory::GetPointer(0x80000000);
const u16 *src = (u16 *)(source + (ACC0 & ram_mask));
for (u32 i = 0; i < (ACC1 >> 16); i++) for (u32 i = 0; i < (ACC1 >> 16); i++)
{ {