10-28-2013, 08:37 PM
(10-28-2013, 08:48 AM)popsdeco Wrote: bah... as I said before, my test environment is poor...
so, basically, should I clear SAVEDATA_PARAMS and generate hash of PARAM.SFO (after clearing)?
I have tried but the hash computed doesn't get the same as original's.
https://github.com/cielavenir/psp-saveda...9eaedef46f
The hashing process should go like this:
1 - Generate a plain unencrypted PARAM.SFO. For example, if you're using a PARAM.SFO from PSP SAVEDATA (e.g.: from gamefaqs.com), all you have to do is clear the SAVEDATA_PARAMS field.
2 - Write this file.
3 - Re-open this file and compute the hashes using the file data as input.
4 - Re-write the SAVEDATA_PARAMS of the file with the hashes now.
In theory, this should work and the hashes should now represent the PARAM.SFO data, but I still need to test further.