Post Reply 
[Doesn't work - ignore] Sony Theme Creator Patch
Author Message
ZiNgA BuRgA
Smart Alternative

Posts: 17,022.2988
Threads: 1,174
Joined: 19th Jan 2007
Reputation: -1.71391
E-Pigs: 446.1274
Offline
Post: #1
[Doesn't work - ignore] Sony Theme Creator Patch
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:

C Code
int sub_406070(void* output, int inputlen, void* input, int mode)

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.

(This post was last modified: 10/02/2008 03:33 AM by ZiNgA BuRgA.)
10/02/2008 12:51 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
[Doesn't work - ignore] Sony Theme Creator Patch - ZiNgA BuRgA - 10/02/2008 12:51 AM
RE: Sony Theme Creator Patch - mp3punk05 - 10/02/2008, 02:23 AM
RE: Sony Theme Creator Patch - ZiNgA BuRgA - 10/02/2008, 02:33 AM
RE: Sony Theme Creator Patch - mp3punk05 - 10/02/2008, 02:41 AM
RE: Sony Theme Creator Patch - ZiNgA BuRgA - 10/02/2008, 03:05 AM
RE: Sony Theme Creator Patch - mp3punk05 - 10/02/2008, 03:13 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: