hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.36k stars 2.18k forks source link

[Feature Request] repair game 's save #7362

Closed sum2012 closed 9 years ago

sum2012 commented 9 years ago

Forward from chinese ppsspp forum Sometime we use save status,but we may misuse so that game 's save is corrupt,cannot save it. The correction: Take Monster Hunter Portable 3rd for example:Find .BIN file,edit it ,type some words,save it. Return PPSSPP,load save status,use game save to save it,it will ask you game 's save is corrupt,do you want to delete it.Then it will save it.

I think that we can do this as a progammly way. (I also think that delete the bin file rather than edit might be easier) I test on Yu-Gi-Oh 6 , the game save 's file is "DATA0"

unknownbrackets commented 9 years ago

I don't know if there's any reasonable way for us to detect that the save has been edited / broken. This seems like game-specific territory at best.

For example, when you insert a USB stick, Windows does not scan the USB stick and tell you, "this .docx file appears to be corrupt. Would you like to delete it?" It will take until you try to open it, because such functionality is application-specific. We don't understand the method in which games format their savedata (they can do it however they want), so we can't know if it's valid.

Even when it's encrypted, afaik, it's just using a cipher, so it decrypts "successfully" but into garbage. We can't tell that it's garbage, it looks exactly as valid to us.

If this is about interaction with savestates, then it's a duplicate of #7244.

-[Unknown]

sum2012 commented 9 years ago

OK.I close this one