mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Allow a short alias for video frames, etc.
This commit is contained in:
parent
e1fd6b6f21
commit
223f95f28c
1 changed files with 8 additions and 0 deletions
|
@ -384,6 +384,14 @@ std::string TextureReplacer::LookupHashFile(u64 cachekey, u32 hash, int level) {
|
|||
return alias->second;
|
||||
}
|
||||
|
||||
// Also check for a cachekey-only alias. This is mainly for ignoring videos.
|
||||
const std::string keyonly = hashname.substr(0, 16);
|
||||
auto keyonlyAlias = aliases_.find(keyonly);
|
||||
if (keyonlyAlias != aliases_.end()) {
|
||||
// Note: this will be blank if explicitly ignored.
|
||||
return keyonlyAlias->second;
|
||||
}
|
||||
|
||||
return hashname + ".png";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue