mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-10-07 19:03:29 +00:00
Replacement: Avoid needless exists check per tex.
This commit is contained in:
parent
cf27d14131
commit
e504f0db8f
@ -410,7 +410,7 @@ void TextureReplacer::PopulateReplacement(ReplacedTexture *result, u64 cachekey,
|
||||
for (int i = 0; i < MAX_MIP_LEVELS; ++i) {
|
||||
const std::string hashfile = LookupHashFile(cachekey, hash, i);
|
||||
const Path filename = basePath_ / hashfile;
|
||||
if (hashfile.empty() || !File::Exists(filename)) {
|
||||
if (hashfile.empty()) {
|
||||
// Out of valid mip levels. Bail out.
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user