Commit graph

71 commits

Author SHA1 Message Date
Unknown W. Brackets
ae5fad2b39 Don't try to read outside the SAVEDATA_FILE_LIST. 2013-05-31 23:14:29 -07:00
Unknown W. Brackets
aaddde2f62 Don't mark <> file entries as non-existant.
Otherwise Load() will fail when it ought not to.
2013-05-31 01:41:04 -07:00
Unknown W. Brackets
00eb684c0c Correctly handle the file list savedata mode. 2013-05-31 01:41:04 -07:00
Unknown W. Brackets
55a226549c Make a few variables static and CONSTANTy. 2013-05-31 01:41:01 -07:00
Unknown W. Brackets
a0fd824f78 Read in the PARAMS.SFO secure file list. 2013-05-31 01:40:43 -07: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
Unknown W. Brackets
f084781ccf Stop writing ENCRYPT_INFO.BIN, PSP doesn't do it.
We don't need it and it may confuse games.
2013-05-31 01:33:24 -07:00
raven02
646f2e07e5 Add Memory::IsValidAddress(curFileInfoAddr) to GetFilesList() 2013-05-25 23:57:59 +08:00
raven02
8ae127e87c Fix the save loading for God Eater Burst and Gundam VS Gundam NP 2013-05-23 22:59:49 +08: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
b2a118ef9d Enable MAKEDATA/READDATA/WRITEDATA.
Not sure if there's more to them, but LBP saves work between the PSP
and PPSSPP with this.
2013-04-21 14:18:12 -07:00
Unknown W. Brackets
9f653d4e99 Fix savedata list failing if you had many saves. 2013-04-16 00:47:47 -07:00
Unknown W. Brackets
746c95f1c8 Basic initial implementation of GETSIZE/DELETEDATA.
LittleBigPlanet uses these.  It seems happier with these working,
although it goes on to call MAKEDATA.

Also seems to make some other games happier.

GETSIZE not heavily tested yet.
2013-03-17 17:47:37 -07:00
Unknown W. Brackets
363d1dbe19 Fix some misc. warnings. 2013-02-18 08:44:59 -08:00
Henrik Rydgard
8749ad0cb9 Warning fixes, very minor updates to shader generators. 2013-02-06 19:04:28 +01:00
Unknown W. Brackets
7a0c1f822d Don't allocate a 0 array in savedata savestates. 2013-02-04 08:27:00 -08:00
Unknown W. Brackets
9db836eb96 Minor typesafety/bounds checking warning fixes. 2013-01-31 00:02:54 -08:00
Henrik Rydgard
8075ece76c 0x10 bytes 2013-01-30 21:27:46 +01:00
Henrik Rydgard
b2020ee243 Fix nasty little stack overwrite in SavedataParam 2013-01-30 21:08:03 +01:00
Xele02
36015f9678 Don't duplicate no save texture for each save since it's the same.
And some games have 99 slots.
2013-01-29 22:46:50 +01:00
Xele02
aa01751589 Save encryption. Load/Save encrypted/decrypted save
RE of Chnnlsv lib
Correct size bug in kirk
2013-01-29 00:11:02 +01:00
Unknown W. Brackets
140fd171ef Fix some 64-bit type conversion warnings. 2013-01-19 13:48:20 -08:00
Xele02
1f4f5eaf9a Add fade in / out on dialog to allow time for the user to release
button.
2013-01-19 00:46:05 +01:00
Xele02
bf7f6d54cb Use "newData" from request which is the PNG icon for empty save. 2013-01-18 22:24:13 +01:00
Unknown W. Brackets
dcd3045cd5 Always use -1 for failed allocs in block allocator.
Before it used 0 and -1, confusing.
2013-01-18 01:38:12 -08:00
raven02
1dc49bad8f Save Mode 22 name fix 2013-01-10 14:34:11 +08:00
Xele02
af59744671 * Fill some value after save/load for game checking them
* Some game like FF1 gave a nameList with no name in it.
2013-01-06 01:29:14 +01:00
Xele02
88296468e4 Some save are smaller than the buffer. This correct K-on Houkago Live
Game which should check save size returned.
2013-01-05 02:00:41 +01:00
Henrik Rydgard
363f158a0a Just warning fixes 2013-01-02 21:13:21 +01:00
Henrik Rydgard
883f61e3dd Savestates: Add quicksave/quickload. Add Android UI for savestates. All single slot for now. 2013-01-02 21:05:02 +01:00
Unknown W. Brackets
5d892e005d Let ParamSFO always own its pointers. 2013-01-02 01:37:03 -08:00
Unknown W. Brackets
f36a4b3a12 Fix a crash when SAVEDATA_FILE_LIST is invalid.
I think that's what caused this anyway.
2013-01-01 19:46:53 -08:00
Xele02
cd8ba8495d Update mode 8
Add mode 12, 13, 17, 22
2013-01-01 01:19:33 +01:00
Unknown W. Brackets
ca4c767d38 Fix mistake from savestates breaking saving.
Clear after, not first.  Was killing the count.
2012-12-31 15:39:49 -08:00
Henrik Rydgård
acd1457308 Merge pull request #288 from unknownbrackets/savestates
Save more of the GPU's state, fix a crash
2012-12-29 15:34:57 -08:00
Xele02
45c9ed389c Implement mode 11 2012-12-29 23:56:45 +01:00
Unknown W. Brackets
848a2e2d2a Arg, missed a crash in savedata for states. 2012-12-29 12:55:58 -08:00
Unknown W. Brackets
0edbcdc955 Fix some missing things / bugs in save states. 2012-12-29 02:56:56 -08:00
Unknown W. Brackets
fd2f609367 Save the savedata and other dialog state.
Although, hopefully it wouldn't be running anyway.
2012-12-28 13:55:31 -08:00
Xele02
05a3574315 Add missing break 2012-12-28 12:00:43 +01:00
Xele02
020e4e7f13 Add code for sdk version info
Modify Encrypt file data
2012-12-28 11:42:41 +01:00
Xele02
a23ca01f16 Mode 8 Correction
Modif for save encryption in Param.sfo and export save filename and
encode key in a file
2012-12-28 11:39:52 +01:00
Unknown W. Brackets
b0295664e8 Correctly fix incorrect save directory being used.
Darn, should've caught this before when I refactored wrong.
2012-12-25 01:41:02 -08:00
Unknown W. Brackets
0fa0d3f6db Oops, need to use saveNameList when specified.
Mistake from 6f165cfbe46ead77e3b4e99fe18ee1609188cf9c...
2012-12-25 01:07:05 -08:00
Unknown W. Brackets
f8f581794f Make sure sceUtility funcs all return error codes.
Right now, everything is 0, but before it wasn't returning anything.
Returning 0 actually made some games start working right.
2012-12-25 01:07:04 -08:00
Unknown W. Brackets
db6ef8ce64 Simplify reading/writing in one shot. 2012-12-25 01:07:04 -08:00
Unknown W. Brackets
f983c8af5c Protect against an unlikely buffer overflow. 2012-12-25 01:07:04 -08:00