mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
VideoCommon: Scan texture dumping directory + subdirectories to not re-dump existing files.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user