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.03k stars 2.15k forks source link

[ERROR MSG FEATURE] PPSSPP SAVES (Including Save states) load but do not overwrite (or create new save) for Windows #16261

Open Okwizi opened 1 year ago

Okwizi commented 1 year ago

What should happen

I recently had an issue saving my games on both the memory stick and as a SAVE STATE. I was also unable to create a new SAVE STATE for any of my existing games. I thought the save files were corrupted but I was still able to load the games. Then I realized that Windows Security had restricted access to where my saves are (...\Documents\PPSSPP\PSP\SYSTEM) The screenshot below shows the details. The "Allow device" option fixes this issue! Screenshot (18) Looks like Folder Control Access in Windows Security limits manipulation in the Documents directory if the setting is on and hence prevents PPSSPP from saving in the memory stick or as a SAVE STATE. I propose a new way of specifying the "reason" why a SAVE file might not save due to the issue I have just stated above. I have taken my time and gone through existing Issues to see if this is something that had been covered in the past. If it had been then I apologize but to make PPSSPP more fun and easy to use, I'd appreciate having a bypass to Windows Security features like Folder Control Access or an error message stating why PPSSPP loads games but can't save them.

Who would this benefit

This would benefit any Windows user/Windows emulator user. This will also help those who aren't into Computer Intelligence but play emulated PSP games with PPSSPP.

Platform (if relevant)

Windows

Games this would be useful in

ULUS104230000 - Warriors Orochi 2, ULES00192001 - SSX ON TOUR,

Other emulators or software with a similar feature

  1. uTorrent has a feature thats notifies users when magnet files have been "Quarantined" by an antivirus or Windows Security.
  2. DSHMC (PS3 controller driver support software) notifies users that starting the application without Administrative rights will prevent the software from properly managing and syncing Bluetooth with the PS3 controller. Also notifies that administrative rights is needed for it to run as a service in Windows.

Checklist

anr2me commented 1 year ago

I guess Documents folder can be restricted like that as it may contains sensitive data, may be PPSSPP should use folders outside Documents but still within %userprofile% folder.

Regarding Quarantine notification, it's usually done by the antivrus when it detects a malware/unsafe files and quarantine it. I'm not sure whether PPSSPP have a feature that requires Administrative rights or not, since we can always relocate the memstick folder to any accessible directory, but if it does use a feature that need Admin rights, mentioning it in Readme file should be sufficient i think.

Also, PPSSPP might only knows that it can't create a new folder/file without knowing the exact reason, unless Windows provides this "reason" information to PPSSPP.

Okwizi commented 1 year ago

You're right. I'm not entirely sure why this specific Windows Security feature affected me just recently because, before this, I could save PPSSPP games just fine. Windows 11 does have concurrent and sometimes new updates, especially with the antivirus tool so they must have updated the algorithms on the software to restrict access to selected folders. I also think the document content of PPSSPP that is kept in the default Documents folder can be moved to someplace without Administration Elevation. Another option would be to run PPSSPP as an Administrator. ( Haven't tried this but I bet it would work). And including a readme for anyone with this particular problem.