From f74503cce01c3c10e0c85b6b1bd588a3a7059ca7 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 5 Dec 2019 08:20:34 -0500 Subject: [PATCH] VideoCommon/OpcodeDecoding: Make use of anonymous namespace Provides a region for all internal utilities. --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 8e5d2fa663..fe4bba007d 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -31,9 +31,11 @@ namespace OpcodeDecoder { -static bool s_is_fifo_error_seen = false; +namespace +{ +bool s_is_fifo_error_seen = false; -static u32 InterpretDisplayList(u32 address, u32 size) +u32 InterpretDisplayList(u32 address, u32 size) { u8* start_address; @@ -60,7 +62,7 @@ static u32 InterpretDisplayList(u32 address, u32 size) return cycles; } -static void InterpretDisplayListPreprocess(u32 address, u32 size) +void InterpretDisplayListPreprocess(u32 address, u32 size) { u8* const start_address = Memory::GetPointer(address); @@ -71,6 +73,7 @@ static void InterpretDisplayListPreprocess(u32 address, u32 size) Run(DataReader(start_address, start_address + size), nullptr, true); } +} // Anonymous namespace bool g_record_fifo_data = false;