DataReader: turn WritePointer into GetPointer

This commit is contained in:
Tillmann Karras committed 2015-01-18 12:59:33 +01:00
1 parent 68d204e877
commit 2cedc0034d
7 files changed
+14 -16

No files matched your search

+2 -2
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));
}
}