summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/DebugUtil.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-10 23:34:50 -0400
committerLioncash <mathew1800@gmail.com>2019-07-10 23:34:54 -0400
commitd4337eebdeb999df380394cdd20d054f5e9fe375 (patch)
treeb2c04979677aa138cbc3202c510a96040ba9adcd /Source/Core/VideoBackends/Software/DebugUtil.cpp
parent9802a5e16b5860d1c6b42beeb1b8ca883467e1b1 (diff)
VideoCommon/Statistics: Rename stats global to g_stats
Makes the global variable follow our convention of prefixing g_ on global variables to make it obvious in surrounding code that it's not a local variable.
Diffstat (limited to 'Source/Core/VideoBackends/Software/DebugUtil.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/DebugUtil.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Core/VideoBackends/Software/DebugUtil.cpp b/Source/Core/VideoBackends/Software/DebugUtil.cpp
index fa54450780..7b9be6e503 100644
--- a/Source/Core/VideoBackends/Software/DebugUtil.cpp
+++ b/Source/Core/VideoBackends/Software/DebugUtil.cpp
@@ -106,7 +106,7 @@ void DumpActiveTextures()
{
SaveTexture(StringFromFormat("%star%i_ind%i_map%i_mip%i.png",
File::GetUserPath(D_DUMPTEXTURES_IDX).c_str(),
- stats.this_frame.num_drawn_objects, stageNum, texmap, mip),
+ g_stats.this_frame.num_drawn_objects, stageNum, texmap, mip),
texmap, mip);
}
}
@@ -124,7 +124,7 @@ void DumpActiveTextures()
{
SaveTexture(StringFromFormat("%star%i_stage%i_map%i_mip%i.png",
File::GetUserPath(D_DUMPTEXTURES_IDX).c_str(),
- stats.this_frame.num_drawn_objects, stageNum, texmap, mip),
+ g_stats.this_frame.num_drawn_objects, stageNum, texmap, mip),
texmap, mip);
}
}
@@ -192,8 +192,8 @@ void CopyTempBuffer(s16 x, s16 y, int bufferBase, int subBuffer, const char* nam
void OnObjectBegin()
{
if (g_ActiveConfig.bDumpTextures &&
- stats.this_frame.num_drawn_objects >= g_ActiveConfig.drawStart &&
- stats.this_frame.num_drawn_objects < g_ActiveConfig.drawEnd)
+ g_stats.this_frame.num_drawn_objects >= g_ActiveConfig.drawStart &&
+ g_stats.this_frame.num_drawn_objects < g_ActiveConfig.drawEnd)
{
DumpActiveTextures();
}
@@ -202,11 +202,11 @@ void OnObjectBegin()
void OnObjectEnd()
{
if (g_ActiveConfig.bDumpObjects &&
- stats.this_frame.num_drawn_objects >= g_ActiveConfig.drawStart &&
- stats.this_frame.num_drawn_objects < g_ActiveConfig.drawEnd)
+ g_stats.this_frame.num_drawn_objects >= g_ActiveConfig.drawStart &&
+ g_stats.this_frame.num_drawn_objects < g_ActiveConfig.drawEnd)
{
DumpEfb(StringFromFormat("%sobject%i.png", File::GetUserPath(D_DUMPOBJECTS_IDX).c_str(),
- stats.this_frame.num_drawn_objects));
+ g_stats.this_frame.num_drawn_objects));
}
for (int i = 0; i < NUM_OBJECT_BUFFERS; i++)
@@ -216,13 +216,13 @@ void OnObjectEnd()
DrawnToBuffer[i] = false;
std::string filename = StringFromFormat(
"%sobject%i_%s(%i).png", File::GetUserPath(D_DUMPOBJECTS_IDX).c_str(),
- stats.this_frame.num_drawn_objects, ObjectBufferName[i], i - BufferBase[i]);
+ g_stats.this_frame.num_drawn_objects, ObjectBufferName[i], i - BufferBase[i]);
TextureToPng((u8*)ObjectBuffer[i], EFB_WIDTH * 4, filename, EFB_WIDTH, EFB_HEIGHT, true);
memset(ObjectBuffer[i], 0, EFB_WIDTH * EFB_HEIGHT * sizeof(u32));
}
}
- stats.this_frame.num_drawn_objects++;
+ g_stats.this_frame.num_drawn_objects++;
}
} // namespace DebugUtil