From 9c8338ec4cf6f76b123d95adbbfb48bd468ee7df Mon Sep 17 00:00:00 2001 From: iwubcode Date: Mon, 4 May 2020 23:07:06 -0500 Subject: DolphinQt / VideoCommon: Add additional texture dumping options. Specifically, this enables users to choose whether to dump mip maps, base level textures, or both. --- Source/Core/VideoCommon/TextureCacheBase.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp') 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)) -- cgit v1.2.3