Don't try to replace textures if there's just an empty TEXTURES/{GAMEID} folder.

This commit is contained in:
Henrik Rydgård 2023-12-29 19:06:43 +01:00
parent 3ffcf267cb
commit daa9fab32a

View file

@ -180,6 +180,12 @@ bool TextureReplacer::LoadIni() {
// Do what we can do anyway: Scan for textures and build the map.
std::map<ReplacementCacheKey, std::map<int, std::string>> filenameMap;
ScanForHashNamedFiles(dir, filenameMap);
if (filenameMap.empty()) {
WARN_LOG(G3D, "No replacement textures found.");
return false;
}
ComputeAliasMap(filenameMap);
}
}