From 2cedc0034def0d8e8b23fafceca9a0f87bdd2e63 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Tue, 6 Jan 2015 17:49:27 +0100 Subject: DataReader: turn WritePointer into GetPointer --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp') diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 34b821605f..0c1083b9c2 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -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)); } } -- cgit v1.2.3