mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-11 15:13:37 +02:00
Merge pull request #21667 from dsprogrammingprojects/Texture-Replacement-Double-Wildcard
Texture replacement addition for Address Only case
This commit is contained in:
@@ -929,6 +929,15 @@ static typename std::unordered_map<ReplacementCacheKey, Value>::const_iterator L
|
||||
return alias;
|
||||
}
|
||||
|
||||
if (!ignoreAddress) {
|
||||
// Address Only.
|
||||
key.cachekey = cachekey & ~0xFFFFFFFFULL;
|
||||
key.hash = 0;
|
||||
alias = map.find(key);
|
||||
if (alias != map.end())
|
||||
return alias;
|
||||
}
|
||||
|
||||
// Anything with this data hash (a little dangerous.)
|
||||
key.cachekey = 0;
|
||||
key.hash = hash;
|
||||
|
||||
Reference in New Issue
Block a user