diff --git a/GPU/Common/TextureReplacer.cpp b/GPU/Common/TextureReplacer.cpp index 678b3672e57a..7f2f7f601723 100644 --- a/GPU/Common/TextureReplacer.cpp +++ b/GPU/Common/TextureReplacer.cpp @@ -177,6 +177,16 @@ bool TextureReplacer::LoadIni() { return false; } else { WARN_LOG(G3D, "Texture pack lacking ini file: %s", basePath_.c_str()); + // Do what we can do anyway: Scan for textures and build the map. + std::map> filenameMap; + ScanForHashNamedFiles(dir, filenameMap); + ComputeAliasMap(filenameMap); + // Set some defaults. + allowVideo_ = false; + ignoreAddress_ = false; + reduceHash_ = false; + ignoreMipmap_ = false; + // TODO: others? } } diff --git a/GPU/Common/TextureReplacer.h b/GPU/Common/TextureReplacer.h index c1a0362af3e1..7cc192319fcb 100644 --- a/GPU/Common/TextureReplacer.h +++ b/GPU/Common/TextureReplacer.h @@ -18,9 +18,11 @@ #pragma once #include "ppsspp_config.h" + #include #include #include +#include #include #include "Common/CommonFuncs.h"