mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
DataReader: turn WritePointer into GetPointer
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user