diff options
| author | JMC47 <JMC4789@gmail.com> | 2020-07-24 01:38:10 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-24 01:38:10 -0400 |
| commit | 781662c6ad1a607b7b7c835c5ff69805ba5f6ec9 (patch) | |
| tree | 97e91c38b86902475721168a9d1c70e4b8b50073 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 213c1841f768ca31304c968064057519be39317b (diff) | |
| parent | 9c8338ec4cf6f76b123d95adbbfb48bd468ee7df (diff) | |
Merge pull request #8793 from iwubcode/dump-texture-options
DolphinQt / VideoCommon: Add additional texture dumping options
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 7 |
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)) |
