mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 14:28:34 +00:00
DataReader: turn WritePointer into GetPointer
This commit is contained in:
parent
68d204e877
commit
2cedc0034d
7 changed files with 14 additions and 16 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue