From b2a9c365011a501ead2b5505d219f9c817b6b7e9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 5 Dec 2019 08:11:52 -0500 Subject: VideoCommon/OpcodeDecoding: Move g_bRecordFifoData into namespace Keeps the global localized with the code that it's primarily related to. Now it's obvious from a glance what the global variable is affecting. --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp') diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 39bb0a5765..e52bfe0137 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -30,8 +30,6 @@ #include "VideoCommon/VideoCommon.h" #include "VideoCommon/XFMemory.h" -bool g_bRecordFifoData = false; - namespace OpcodeDecoder { static bool s_is_fifo_error_seen = false; @@ -75,6 +73,8 @@ static void InterpretDisplayListPreprocess(u32 address, u32 size) Run(DataReader(start_address, start_address + size), nullptr, true); } +bool g_record_fifo_data = false; + void Init() { s_is_fifo_error_seen = false; @@ -255,7 +255,7 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list) } // Display lists get added directly into the FIFO stream - if (!is_preprocess && g_bRecordFifoData && cmd_byte != GX_CMD_CALL_DL) + if (!is_preprocess && g_record_fifo_data && cmd_byte != GX_CMD_CALL_DL) { const u8* const opcode_end = src.GetPointer(); FifoRecorder::GetInstance().WriteGPCommand(opcode_start, u32(opcode_end - opcode_start)); -- cgit v1.2.3