mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Don't try to replace textures if there's just an empty TEXTURES/{GAMEID} folder.
This commit is contained in:
parent
3ffcf267cb
commit
daa9fab32a
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue