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/BPStructs.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/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index f9be647114..4a45ba7c52 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -25,6 +25,7 @@ #include "VideoCommon/Fifo.h" #include "VideoCommon/FramebufferManager.h" #include "VideoCommon/GeometryShaderManager.h" +#include "VideoCommon/OpcodeDecoding.h" #include "VideoCommon/PerfQueryBase.h" #include "VideoCommon/PixelEngine.h" #include "VideoCommon/PixelShaderManager.h" @@ -343,7 +344,7 @@ static void BPWritten(const BPCmd& bp) Memory::CopyFromEmu(texMem + tlutTMemAddr, addr, tlutXferCount); - if (g_bRecordFifoData) + if (OpcodeDecoder::g_record_fifo_data) FifoRecorder::GetInstance().UseMemory(addr, tlutXferCount, MemoryUpdate::TMEM); TextureCacheBase::InvalidateAllBindPoints(); @@ -566,7 +567,7 @@ static void BPWritten(const BPCmd& bp) } } - if (g_bRecordFifoData) + if (OpcodeDecoder::g_record_fifo_data) FifoRecorder::GetInstance().UseMemory(src_addr, bytes_read, MemoryUpdate::TMEM); TextureCacheBase::InvalidateAllBindPoints(); |
