Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with manual image hashing for texture replacement
02-19-2018, 04:11 PM
Post: #5
RE: Help with manual image hashing for texture replacement
Okay, I still can't get the hash to match my clut.

The image size of 512x512 & 0xf0f == 0 (GPU/GPUState.h#L291) so, if ignoreaddress is also true, than "cachekey" will be zero.

The texture format should be GE_TFMT_CLUT32 since the image is using 32-bit ABGR. Which means I need to xor 7 somewhere.
(GPU/Common/TextureCacheCommon.cpp#L323)

The seed should be 0xC0108888. (GPU/GLES/TextureCacheGLES.cpp#L246). clutExtendedBytes should be the number of colours in the clut * 4.


...Honestly, I might just put fwrites everywhere to dump the clut directly from PPSSPP and see where I'm going wrong. I'm getting 0x7A5A37BA for the clut hash but ppsspp is giving me 0xbf5ac1b0.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Help with manual image hashing for texture replacement - uyjulian - 02-19-2018 04:11 PM

Forum Jump: