Commit Graph
78 Commits
Author SHA1 Message Date
Unknown W. Brackets f16a6b8abd MsgDialog: Show better error messages.
I think the PSP really did just show error codes, but that's not a reason
to keep that confusion going.  For common save errors, let's show the
messages.

Some games, for example, simply show the no data found error when you play
for the first time and trigger anything to check for data.
2020-07-13 18:24:05 -07:00
Unknown W. Brackets c4717fae2f Savedata: Reset data size when retrying hash.
It's even possible we might've not loaded the key before, so let's play it
safe and reset everything.

The previous fix only worked in some games, when dataSize was larger than
necessary.
2018-07-28 09:41:44 -07:00
Unknown W. Brackets 1976be48ab Savedata: Use file hash to validate hash mode.
This makes older PPSSPP save data also work, and also logs when save data
is detected as corrupt.
2018-06-30 12:17:52 -07:00
Unknown W. Brackets 46d7ead781 Savedata: Add validation on secureVersion param. 2018-06-24 15:30:33 -07:00
Unknown W. Brackets aad6377580 Savedata: Return result codes from Save/Load.
This doesn't change anything, yet.
2018-06-24 13:28:57 -07:00
Unknown W. Brackets d2be5beccc Savedata: Show icon for new saves more often.
In fact, it may even be wrong to show the new data icon in this case...

Also fixes crashes when save title is 128 characters long.

Should improve #9632.
2017-12-03 06:35:41 -08:00
Unknown W. Brackets 42c0e7d5dd Savedata: Handle disk full properly in GETSIZE.
Games use these fields to determine how much more space is needed to
create savedata.  Some also use it for install data.

This allows more games to properly report free space issues.
2017-10-14 21:55:38 -07:00
ChinandHenrik Rydgard 37f50a3792 Change to pass some arguments by reference 2015-03-01 16:49:00 +01:00
Unknown W. Brackets 2958c575a1 Check actual free disk space when games ask.
Windows only for the moment.
2014-11-01 00:33:19 -07:00
daniel229 70fac3a65e savedata 2014-10-03 15:16:12 +08:00
Unknown W. Brackets 30f8ec447a Hash and detect savedata hashmode correctly.
Fixes Persona 1 savedata compatibility.
2014-07-06 19:27:51 -07:00
Yifan LuandHenrik Rydgård c5336d5817 Added printing of game save key to debug log when loading/saving 2014-03-22 16:13:30 +01:00
Unknown W. Brackets fe8ada4d7e Log the name of the save operation, not just #.
Makes it a lot easier to read...
2014-03-15 17:20:34 -07:00
Unknown W. Brackets 8d29b583e8 Reduce a few Core/Dialog/ includes. 2014-03-15 10:52:13 -07:00
sky-zer 2ba30e3f97 SceUtilitySavedataFileListEntry correction. 2014-01-28 00:24:56 +04:00
Unknown W. Brackets e00a244d1e Handled fixed-length strings in savedata properly. 2014-01-24 01:21:13 -08:00
Henrik Rydgård 87f203a5b8 More include untangling 2013-12-29 23:44:35 +01:00
Henrik Rydgård 79ff2f0ba8 Start untangling our include mess a little. 2013-12-29 23:34:45 +01:00
Unknown W. Brackets 2d3f0758c1 Dynamically manage PPGe images so 50+ are okay.
Otherwise, we try to allocate all at once and could run out of ram.

Should fix #2242.
2013-12-08 11:06:18 -08:00
Henrik Rydgård c9475b17b8 Merge pull request #4514 from shenweip/patch-3
Skip the read of secure files which are not in SFO.
2013-11-14 14:02:21 -08:00
Kingcom 7f9182033e Partially implement SCE_UTILITY_SAVEDATA_FOCUS_NAME 2013-11-12 10:10:56 +01:00
shenweip d3fbbebe16 Only skip when load fail. 2013-11-12 12:14:16 +08:00
shenweip c5a6e4653b Only check in secure mode. 2013-11-12 12:08:11 +08:00
shenweip 02ceb312cf Skip the load of secure files which are not in SFO. 2013-11-12 11:21:26 +08:00
shenweip 8a26da6e45 Load another files of save. 2013-11-03 23:52:16 +08:00
shenweip b9d655f602 Code CleanUp,make it clearer. 2013-11-03 23:10:05 +08:00
shenweip 07e39b2247 Implemented DELETEDATA mode of saveDialog. 2013-11-02 19:48:25 +08:00
shenweip f4b60f22b0 Add a check to avoid the same savedatas are set into SaveDataList. 2013-10-28 00:07:32 +08:00
Henrik Rydgård 2b278d4c13 Buildfix 2013-10-23 17:00:10 +02:00
Sacha 1af2f99959 Initialise everything in the SaveFileInfo to 0.
We were getting std::tm initialised to random values which non-existent files become the preferred save.
2013-10-23 23:19:50 +10:00
Unknown W. Brackets 50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Unknown W. Brackets 0b5bdeb1d3 Fix some compile failures under big endian. 2013-07-28 21:04:17 -07:00
Unknown W. Brackets 777074cfe1 Switch to _le memory layout specs in dialogs. 2013-07-27 15:30:18 -07:00
Unknown W. Brackets 8f0d3c55fb Use PSP memory directly in GETSIZES for savedata. 2013-06-23 22:22:25 -07:00
Unknown W. Brackets 6eca664c7c Switch idList to use structs in savedata. 2013-06-23 22:22:24 -07:00
Unknown W. Brackets 3672b591bb Return error codes from SavedataParam::GetSizes().
Rather than true/false, makes things simpler.
2013-06-23 22:22:23 -07:00
Unknown W. Brackets 16752f57b6 Switch SIZES savedata mode to using structs. 2013-06-23 22:22:23 -07:00
Unknown W. Brackets dae4156654 Make more savedata struct parts PSPPointers. 2013-06-22 22:49:39 -07:00
Unknown W. Brackets 12232dcad4 Simplify some Memory::GetPointer stuff. 2013-06-22 22:44:00 -07:00
Unknown W. Brackets f7a717746f Sometimes newData.buf is NULL, don't log an error. 2013-06-22 22:40:48 -07:00
aquanull b5440ecb65 Unify some common elements of dialogs. 2013-06-10 21:24:49 +08:00
aquanull ddc85988ab Improve PSP system dialogs' looks.
Format date according to configurations.
Swap positions of button tips.
Fix text wrapping with non-top-left text alignment.
2013-06-10 21:24:48 +08:00
Unknown W. Brackets 5027e24150 Use a PSPPointer in the FILELIST savedata mode. 2013-06-02 15:17:02 -07:00
Sacha b39a572043 Buildfixes.
Fix C++11 usage.
Remove redundancy.
Fix st_*time re-usage.
2013-06-02 13:26:39 +10:00
Unknown W. Brackets 1d2476f28e Add error handling to the FILES savedata mode.
Not actually changed yet.
2013-05-31 01:40:36 -07:00
aquanull c316bc9a33 Support more list focus settings. 2013-05-20 23:54:01 +08:00
aquanull dc25e6d223 Always pick up the saveID by latest file time instead of the previously used one.
This fixes SRWAP & SRWMXP.
2013-05-20 23:54:00 +08:00
Unknown W. Brackets 27572e3a36 Default to saveName for AUTO LOAD/SAVE modes.
Maybe should for others, but at least these for sure.

Fixes #1017.
2013-05-11 21:01:20 -07:00
Unknown W. Brackets 1ffb0755b1 Move some things around and simplify. 2013-05-11 20:31:40 -07:00
Unknown W. Brackets 203abe6f7f In TYPE_SAVE/TYPE_LOAD, show a confirmation.
AUTOSAVE/AUTOLOAD don't, SAVE/LOAD do.
2013-05-11 19:10:01 -07:00