From 9802a5e16b5860d1c6b42beeb1b8ca883467e1b1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 10 Jul 2019 23:24:35 -0400 Subject: VideoCommon/Statistics: Make all member functions non-static Rather than making Statistics' member functions operate on the global variable instance of itself, we can make these functions member functions and operate on a by-instance state, removing the direct dependency on the global variable itself. This also makes for less reading, as there's no need to repeat "stats." for all variable accesses. --- 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 2b3967d646..a93fba7258 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -51,13 +51,13 @@ static u32 InterpretDisplayList(u32 address, u32 size) if (startAddress != nullptr) { // temporarily swap dl and non-dl (small "hack" for the stats) - Statistics::SwapDL(); + stats.SwapDL(); Run(DataReader(startAddress, startAddress + size), &cycles, true); INCSTAT(stats.this_frame.num_dlists_called); // un-swap - Statistics::SwapDL(); + stats.SwapDL(); } return cycles; -- cgit v1.2.3