Skip to content

Commit

Permalink
Allow a short alias for video frames, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed May 1, 2016
1 parent e1fd6b6 commit 223f95f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Core/TextureReplacer.cpp
Expand Up @@ -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";
}

Expand Down

0 comments on commit 223f95f

Please sign in to comment.