Don't ask twice if MemoryBlocks can read mem.

They already check on Read32(), so just use that to iterate.
This commit is contained in:
Unknown W. Brackets 2014-04-28 00:15:37 -07:00
parent db1ca2f89f
commit e4c0b0310c
4 changed files with 73 additions and 13 deletions

View file

@ -3,7 +3,9 @@
u8 PPCDecoder::DecodeMemory(const u64 address)
{
Decode(Memory.Read32(address));
u32 instr;
Memory.Read32ByAddr(address, &instr);
Decode(instr);
return 4;
}