diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-12-05 08:11:52 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-12-05 09:13:03 -0500 |
| commit | b2a9c365011a501ead2b5505d219f9c817b6b7e9 (patch) | |
| tree | 6d099d99970ba0f2a61a61f0de79e22b89931937 /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | d8063e9c543b34ddd646556cf7148c69bffbd816 (diff) | |
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.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<true>(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)); |
