summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2024-03-21 09:09:35 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2024-03-21 20:27:34 -0500
commit550e008774e643fe245938241a17c36db9877a02 (patch)
tree8ae9f20fb54afe9ef1c938336d65e9e274799cf1 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent2d5286d2e26a42b724fd91f6506a7998de730848 (diff)
VideoCommon: Scan texture dumping directory + subdirectories to not re-dump existing files.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index e5b8122982..fbe4f107bf 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -52,7 +52,6 @@
#include "VideoCommon/TextureConversionShader.h"
#include "VideoCommon/TextureConverterShaderGen.h"
#include "VideoCommon/TextureDecoder.h"
-#include "VideoCommon/TextureUtils.h"
#include "VideoCommon/VertexManagerBase.h"
#include "VideoCommon/VideoCommon.h"
#include "VideoCommon/VideoConfig.h"
@@ -1818,15 +1817,13 @@ RcTcacheEntry TextureCacheBase::CreateTextureEntry(
const std::string basename = texture_info.CalculateTextureName().GetFullName();
if (g_ActiveConfig.bDumpBaseTextures)
{
- VideoCommon::TextureUtils::DumpTexture(*entry->texture, basename, 0,
- entry->has_arbitrary_mips);
+ m_texture_dumper.DumpTexture(*entry->texture, basename, 0, entry->has_arbitrary_mips);
}
if (g_ActiveConfig.bDumpMipmapTextures)
{
for (u32 level = 1; level < texLevels; ++level)
{
- VideoCommon::TextureUtils::DumpTexture(*entry->texture, basename, level,
- entry->has_arbitrary_mips);
+ m_texture_dumper.DumpTexture(*entry->texture, basename, level, entry->has_arbitrary_mips);
}
}
}