mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-20 09:19:48 +00:00
VideoCommon: Scan texture dumping directory + subdirectories to not re-dump existing files.
This commit is contained in:
parent
2d5286d2e2
commit
550e008774
4 changed files with 72 additions and 20 deletions
|
@ -4,6 +4,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
|
@ -11,6 +12,18 @@ class AbstractTexture;
|
|||
|
||||
namespace VideoCommon::TextureUtils
|
||||
{
|
||||
class TextureDumper
|
||||
{
|
||||
public:
|
||||
// Only dumps if texture did not already exist anywhere within the dump-textures path.
|
||||
void DumpTexture(const ::AbstractTexture& texture, std::string basename, u32 level,
|
||||
bool is_arbitrary);
|
||||
|
||||
private:
|
||||
std::unordered_set<std::string> m_dumped_textures;
|
||||
};
|
||||
|
||||
void DumpTexture(const ::AbstractTexture& texture, std::string basename, u32 level,
|
||||
bool is_arbitrary);
|
||||
}
|
||||
|
||||
} // namespace VideoCommon::TextureUtils
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue