Skip to content

Commit

Permalink
Don't try to replace textures if there's just an empty TEXTURES/{GAME…
Browse files Browse the repository at this point in the history
…ID} folder.
  • Loading branch information
hrydgard committed Dec 29, 2023
1 parent 3ffcf26 commit daa9fab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GPU/Common/TextureReplacer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit daa9fab

Please sign in to comment.