Commit Graph
534 Commits
Author SHA1 Message Date
Henrik Rydgård bd71af24db Fix some minor things found looking at Valgrind output 2019-02-27 13:42:00 +01:00
Henrik Rydgård e49c488c6f Silence a compiler warning, fix an uninitialized variable 2019-02-27 10:33:27 +01:00
Unknown W. Brackets 9a5fbe5ea5 Savedata: Truncate detail if it's too long.
We could add scrolling later, but this makes it more usable without ugly
text overlap, at least.

Fixes #11711.
2019-02-16 14:52:01 -08:00
Unknown W. Brackets 2650ddae75 Savedata: Write only one secure entry.
Before, we were filling all the entries when the first file was saved, a
regression from 1976be4.  This caused issues in games that use a single
savedata folder for multiple secure files, such as Valkyria Chronicles 3.
2018-10-28 12:35:54 -07:00
Unknown W. Brackets ed10b69b17 Savedata: Show confirm save without faded icon.
See #9632.
2018-09-01 14:40:44 -07:00
Unknown W. Brackets b64bb2e8ce Savedata: Also validate icon/subdata size. 2018-08-11 17:00:15 -07:00
Unknown W. Brackets c0ccc9449d Savedata: Use size, not bufSize, for icons.
Verified by tests.  Should help #8810.
2018-08-11 17:00:09 -07:00
Unknown W. Brackets 42feade460 Savedata: Return error when bufSize is too small.
Mirrors what a PSP does.
2018-08-11 16:36:28 -07:00
Unknown W. Brackets 718053e7fc Savedata: Return error codes on WRITEDATA/MAKEDATA. 2018-08-11 16:35:58 -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 93d96b8a32 Savedata: Map secureVersion modes correctly.
1 was correct, but other modes were not.
2018-06-24 15:34:27 -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 c588046d99 Savedata: Respect secureVersion parameter.
This isn't used in many games, but see #10814.
2018-05-28 08:42:48 -07:00
Unknown W. Brackets 208b0aa4a7 Savedata: Report secureVersion param usage.
Seems likely this is what's happening in #10814, but need data from more
games.
2018-04-29 09:46:23 -07:00
aliaspider 54d9406713 fix mingw and msvc cmake builds. 2018-03-23 03:18:13 +01:00
Henrik Rydgård c3629b4a53 Warning fixes 2018-02-04 13:42:04 +01: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
Henrik RydgårdandGitHub ae9393cb22 Merge pull request #10014 from unknownbrackets/gamedata-state
Gamedata: Fix savestates for data install
2017-10-15 10:41:19 +02:00
Henrik RydgårdandGitHub 6c6cdd0d68 Merge pull request #10015 from unknownbrackets/osk-limit
OSK: Limit allowed keyboards based on input mask
2017-10-15 10:39:33 +02:00
Unknown W. Brackets 190691f249 OSK: Limit allowed keyboards based on input mask. 2017-10-14 22:59:48 -07:00
Unknown W. Brackets 078e03c7cb Gamedata: Fix savestates for data install.
Otherwise, with rewind enabled, it hangs forever.
2017-10-14 22:11:59 -07: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
LunaMoo 8826c031a6 Add ini-only "Savedata Upgrade" setting. 2017-10-04 17:16:21 +02:00
Henrik Rydgård 6a1fa728d8 Remove Globals.h 2017-08-31 17:15:22 +02:00
sum2012andHenrik Rydgård e5001a115f Implemented sceUtilityGetSystemParamInt 2017-06-06 19:05:59 +02:00
Henrik Rydgård 867a1d8bb2 Buildfix, oops 2017-05-26 19:05:18 +02:00
Henrik Rydgård 21fe73c8e7 Switch strncpy to truncate_cpy in a bunch of places. 2017-05-26 19:04:08 +02:00
Unknown W. Brackets 53a8e4213d Core: Fix PPGe text drawing with missing icon. 2017-04-24 09:37:55 -07:00
Henrik Rydgard 26a2d42731 Big mutex overhaul - remove our custom ones, make them non-recursive where possible 2017-02-28 11:40:29 +01:00
Henrik Rydgard 50be4e72b2 Get rid of our own silly reimplementation of std::thread 2017-02-27 20:51:36 +01:00
Henrik Rydgard 03dab0fdbd More UWP prep 2017-02-25 09:57:22 +01:00
Florent Castelli 70593d1004 android: Change preprocessor define to standard __ANDROID__
ANDROID is only standard to the old Makefile buildsystem, not the platform.
2016-10-12 11:14:09 +02:00
Florent Castelli 373db56a16 blackberry: Remove! 2016-10-11 17:40:32 +02:00
Unknown W. Brackets 29f5763d32 Fix some warnings.
The enum type was not hurting anyone, since the values were the same.
2016-09-10 20:32:37 -07:00
Unknown W. Brackets f0a8e931ff Remove UTF-8 BOMs from a few files.
And note the only ones that do need them in editorconfig.
2016-08-07 17:59:35 -07:00
Unknown W. Brackets dcf8da244d Prevent buffer overrun from OSK dialog.
If there was never a null, by mistake, we'd corrupt memory and then crash.

Occurs in the "Sonymon" homebrew.
2016-06-26 20:28:01 -07:00
Unknown W. Brackets a1fbcc3d93 Avoid directly calling osm from Core/GPU code.
This allows UI to handle the message however it wants to, and reduces
cross linkage issues.
2016-05-27 22:05:30 -07:00
Henrik Rydgard 727058fc27 Remove an entry from GPUStats that didn't really belong. 2016-04-02 11:06:05 +02:00
gmvbif 281f0e18e6 Fixed some errors from PVS-Studio in Core project
FixedSizeQueue
- Added private operator=
- Changed signature of EndPop
Some changed to printf like functions.
Fixed typo in syn-att.c
2015-12-31 10:25:11 +03:00
Unknown W. Brackets 7471516d05 Gamedata: Reduce the transfer per call.
The standard value made my desktop drop frames without the data cached.
2015-12-25 23:24:04 -08:00
Unknown W. Brackets 34fc03068a Gamedata: Create a basic PARAM.SFO in data dir.
Fixes #7903.  Have not really tested, just based on game behavior.  Could
be inaccurate.
2015-12-25 21:54:14 -08:00
Unknown W. Brackets e4c6a8398e Gamedata: Copy in chunks instead of all at once.
This way the game's progress shows correctly.  Also, correct the progress
calculation for < 100% (integer rounding.)
2015-12-25 21:39:24 -08:00
Unknown W. Brackets fb9e5d4741 Gamedata: Refactor out file iteration.
Goal here is to process files in chunks, rather than one file at a time.
Files are often > 100MB, so we don't want to copy all in one frame.
2015-12-25 21:13:55 -08:00
Unknown W. Brackets 43e7d9dbc2 Gamedata: Use status delays in init/update/etc.
Like with savedata.
2015-12-25 21:01:13 -08:00
Unknown W. Brackets b71b1bbff9 Initially count the dir for save info size.
Should help #6068, verified by the sizes test and JpcspTrace results.
2015-11-15 10:29:13 -08:00
Lioncash b1901fbad2 Core: Remove unimplemented class function declarations 2015-10-18 10:55:11 -04:00
Henrik Rydgård a71fbccfbc Warning fixes for new LLVM on mac (warns on inconsistent usage of override) 2015-09-17 20:29:37 +02:00
Unknown W. Brackets e0f85a9c6b Native merge part 1: skip native/ in includes. 2015-09-06 12:19:33 -07:00