summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2020-05-04 23:07:06 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2020-07-22 19:30:27 -0500
commit9c8338ec4cf6f76b123d95adbbfb48bd468ee7df (patch)
tree501f89f28fe89c24c2d6054afb569fedf0fc88dd /Source/Core/VideoCommon/TextureCacheBase.cpp
parentd7a91316da54267aca6f6569d30aec9c28a01bf4 (diff)
DolphinQt / VideoCommon: Add additional texture dumping options. Specifically, this enables users to choose whether to dump mip maps, base level textures, or both.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index 5a298273d3..fdf3c0e6b3 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -920,8 +920,15 @@ void TextureCacheBase::DumpTexture(TCacheEntry* entry, std::string basename, uns
if (level > 0)
{
+ if (!g_ActiveConfig.bDumpMipmapTextures)
+ return;
basename += fmt::format("_mip{}", level);
}
+ else
+ {
+ if (!g_ActiveConfig.bDumpBaseTextures)
+ return;
+ }
const std::string filename = fmt::format("{}/{}.png", szDir, basename);
if (File::Exists(filename))