Update: This doesn't work - it appears the PSP checks image dimensions too, making this somewhat useless.
Only read on if you're interested (or want to waste time).
This was originally my lame attempt to try and figure out the RLZ compression method, but, since I somewhat suck at Assembler, and there's too much code for my level, I gave up :P
Anyways, this is a simple patch which should remove the dimension restrictions in Sony's Theme Creator.
Note that I have not tested if this works fully (too lazy to upgrade to 3.70+ >_>)
Alright, here's what to do:
Open up
themeconv.exe in a hex editor.
Go to
0x816D, the 2 byte value there should be
0x097F - change this to
0x0BEB.
Next, go to
0x8181, and change the 2 byte value from
0x0A7F to
0x0CEB.
Save the file, and now run the EXE. You should be able to add icons/pictures regardless of their dimension.
It appears to generate PTFs fine, but, as said previously, I haven't tested this, so can't guarantee it will work.
Please tell me if you try this, and tell me if it works! Thanks :D
Oh, and if anyone's interested in trying to figure out the RLZ compression thingy, I believe the function is at
0x406070 (0x6070 in file), and has the following definition:
Where output is the output buffer to send the data to, inputlen is the length of the input buffer, input is the actual input buffer.
mode is an interesting switch - the theme creator will actually compress the data 3 times - with modes 5, 6 and 7. It then determines which mode gives the highest efficiency, and calls this function again with the respective mode.
I think the mode can be seen in the first byte of the compressed data.
The mode appears to be AND'd with 7 in the code, so a mode above 7 will just be reduced mod 7. Not sure what's wrong with modes 0-4 though.