hrydgard/ppsspp — pull request #523 by Xele02 (2013-01-28 23:37:44+00:00)
Title: Load/Save encrypted/decrypted save

Also added save function 10 (delete file).

I've put a param in the config to say if we want to encrypt or not the save when saving. Default to true.

On load, PPSSPP will detect crypted save if in the PARAM.SFO, the SAVEDATA_PARAMS data is different of 0 (there is 3 hash on a real save). PPSSPP put 0 everywhere if it's a decrypted save. It's compatible with the previous version of PPSSPP.

On save, we encrypt or not depending of the config flag. The missing kirk command 5 is used for one of the PARAM.SFO hash, but the PSP don't mind if it's a random value so we can load save on PSP.

I've tested to save/load crypted and decrypted save on PPSSPP, and swap save between PSP and PPSSPP in the two way without problem for :
Tales of Eternia
Project Diva 2 and Ex
Valkyria Chronicles 2
Pixel N Love Rush

Tell me if you have a game which it's not working. Could be a sdk version problem.