DataReader: turn WritePointer into GetPointer

This commit is contained in:
Tillmann Karras 2015-01-06 17:49:27 +01:00
parent 68d204e877
commit 2cedc0034d
7 changed files with 14 additions and 16 deletions

View file

@ -137,7 +137,7 @@ u8* OpcodeDecoder_Run(DataReader src, u32* cycles, bool in_display_list)
u8* opcodeStart;
while (true)
{
src.WritePointer(&opcodeStart);
opcodeStart = src.GetPointer();
if (!src.size())
goto end;
@ -301,7 +301,7 @@ u8* OpcodeDecoder_Run(DataReader src, u32* cycles, bool in_display_list)
if (!is_preprocess && g_bRecordFifoData && cmd_byte != GX_CMD_CALL_DL)
{
u8* opcodeEnd;
src.WritePointer(&opcodeEnd);
opcodeEnd = src.GetPointer();
FifoRecorder::GetInstance().WriteGPCommand(opcodeStart, u32(opcodeEnd - opcodeStart));
}
}