Commit graph

134 commits

Author SHA1 Message Date
Yifan Lu
c5336d5817 Added printing of game save key to debug log when loading/saving 2014-03-22 16:13:30 +01:00
Unknown W. Brackets
241d5cb5a5 Always count one cluster for usedata in SIZES.
This matches values coming out of hardware... seems to make sense.
2014-03-15 18:50:44 -07:00
Unknown W. Brackets
ec4ce7e7e5 Return proper SIZES info for existing savedata.
Fixes Fieldrunners saving/loading.
2014-03-15 18:50:14 -07:00
Unknown W. Brackets
8d29b583e8 Reduce a few Core/Dialog/ includes. 2014-03-15 10:52:13 -07:00
Unknown W. Brackets
996fa39684 Reduce some unnecessary includes in Core/. 2014-03-15 10:41:07 -07:00
chinhodado
0ea7c78299 fix empty string checking 2014-02-15 16:31:37 -05:00
Unknown W. Brackets
348c6a16da If a focus mode is used with autoload, ignore it.
Before, if the "focused" save did not exist, we failed incorrectly, even
though the actual save we were trying to load was the correct one.
2014-02-15 09:43:43 -08:00
Unknown W. Brackets
bd982b2e6f Support PSP_O_TRUNC on Windows.
There are more modes we don't support properly.  May fix savedata
corruption in Gran Turismo and possibly other games.
2014-02-11 23:54:30 -08:00
Unknown W. Brackets
b03ca7049b Return an error in FILES based on SDK version.
Tested to require this exact version to return that error.  Not sure if
any games will actually hit this anyway, but they did with lower SDK
versions.
2014-02-08 09:08:27 -08:00
Unknown W. Brackets
2bdaf090e1 Don't set the file list entry pad to anything.
Per tests on a PSP.
2014-01-28 00:37:13 -08: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
2278bee910 Fix double free when saving. 2013-12-08 14:46:05 -08:00
Unknown W. Brackets
0636a65ad9 Use ReadEntireFile() a few more places.
This fixes one or two minor memory leaks.
2013-12-08 12:02:37 -08: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 Rydgard
32f479b0a6 Assorted log spam reductions.
Also let Java know of some important events. Not used for anything yet.
2013-12-04 17:43:00 +01: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
shenweip
37e477f6e5 Add a log and fix typo. 2013-11-14 22:49:26 +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
740f49c7a1 Add a check and comment. 2013-11-04 00:13:00 +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
80db1e00cc Update comment. 2013-10-29 02:14:39 +08:00
shenweip
1abcf8765d Quick fix for savedata. 2013-10-29 01:41:48 +08:00
shenweip
f4b60f22b0 Add a check to avoid the same savedatas are set into SaveDataList. 2013-10-28 00:07:32 +08:00
shenweip
e699eb95b2 Add support for saveNameListData "<>". 2013-10-27 19:03:14 +08:00
Sacha
9e20e1a297 Fix time compares in save focus. Was breaking platforms (like QNX) where time is stored as a 64-bit unsigned value (nanoseconds). 2013-10-23 23:25:25 +10:00
Sacha
07e8d475b3 Use name count instead of data count for grabbing focus. 2013-10-23 23:16:49 +10:00
shenweip
6812ddf8e4 Fallback to validDir if sfo file doesn't exist. 2013-10-07 02:32:03 +08:00
shenweip
561cbab5c5 Use sfo file to set savedata'date when mode is 11. 2013-10-06 22:17:05 +08:00
The Dax
d102baacd0 Prep PPSSPP for Visual Studio 2013. 2013-09-17 10:27:06 -04: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
5352432d8f Don't copy a negative size in savedata.
Not sure what's correct here, Street Fighter Alpha 3 passes -1.
It seems to call it twice, so probably the first time is to get the size?

Fixes #3722, thanks @thedax.
2013-09-10 22:23:47 -07:00
Unknown W. Brackets
e75ea49a66 Fix #3706, custom save dialog dates. 2013-09-10 02:09:18 -07:00
Unknown W. Brackets
9fb64183e6 Don't write more than the savedata buffer.
Fixes Numblast when there's savedata, probably others.
Could use more testing.
2013-09-10 01:46:49 -07:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
sum2012
f941b09909 better fix 2013-09-04 23:14:39 +08:00
sum2012
3d20b8d7b0 Fix crash in debug build 2013-09-04 20:35:34 +08:00
sum2012
6358f4ec62 Fix Summon Night 5,when there is a save,make new game would crash 2013-09-04 20:18:21 +08:00
Unknown W. Brackets
1ed8edb0d3 Avoid some dangerous hex constant widths. 2013-08-22 23:23:48 -07:00
Henrik Rydgard
43978f0ed6 Auto-create .nomedia file on Android to hide savedata icons from Gallery 2013-08-12 21:49:02 +02:00
Unknown W. Brackets
a32cf817ff Fix some minor warnings. 2013-07-07 20:31:04 -07:00
Lioncash
b823bb7543 Change PSPPointer function name Valid to IsValid.
Improves readability and shows intent better.
2013-06-25 09:51:39 -04:00
Unknown W. Brackets
a94640f112 Fix a few null checks in savedata.
Fixes #2456.
2013-06-24 23:02:57 -07:00