mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Pass w/h in for replacement lookup.
So we can scale the w/h properly.
This commit is contained in:
1 parent
f039259a1a
commit
0c357c0ea3
5 files changed
+6
-5
No files matched your search
@@ -166,7 +166,7 @@ u32 TextureReplacer::ComputeHash(u32 addr, int bufw, int w, int h, GETextureForm
|
||||
}
|
||||
}
|
||||
|
||||
ReplacedTexture TextureReplacer::FindReplacement(u64 cachekey, u32 hash) {
|
||||
ReplacedTexture TextureReplacer::FindReplacement(u64 cachekey, u32 hash, int w, int h) {
|
||||
_assert_msg_(G3D, enabled_, "Replacement not enabled");
|
||||
|
||||
ReplacedTexture result;
|
||||
@@ -179,6 +179,7 @@ ReplacedTexture TextureReplacer::FindReplacement(u64 cachekey, u32 hash) {
|
||||
|
||||
if (!hashfile.empty() && File::Exists(filename)) {
|
||||
// TODO: Count levels that exist, etc.
|
||||
// TODO: Use w/h to determine actual size based on hash range (png may be smaller)?
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in new issue
Block a user