Pass w/h in for replacement lookup.

So we can scale the w/h properly.
This commit is contained in:
Unknown W. Brackets committed 2016-05-01 00:30:44 -07:00
1 parent f039259a1a
commit 0c357c0ea3
5 files changed
+6 -5

No files matched your search

+2 -1
View File
@@ -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;