Henrik Rydgård
4f43cff5ca
Move fileutil, net, image loaders, ui to Common. ( #13506 )
...
* Move and rename file_util/fd_util to Common/File/FileUtil and DirListing
Let's also move net while we're at it.
Move the ZIM/PNG loaders over to Common.
Move the UI framework into Common
iOS buildfix
* Buildfix
* Buildfixes
* Apple buildfix
* This typo again..
* UWP buildfix
* Fix build of PPSSPPQt, such as it is (it's not in good condition...)
* Guess what? Another buildfix.
2020-10-04 20:48:47 +02:00
Henrik Rydgård
f82754e8b4
Merge pull request #13507 from shenweip/savedata-2
...
Savedata:Improves the performances according to some tests.
2020-10-04 19:49:18 +02:00
shenweip
81ad9a930a
SaveData:Displays all saves like a PSP for LISTALLDELETE mode.
2020-10-05 00:00:28 +08:00
Henrik Rydgård
ff8148dd92
Move native/util, native/data and native/i18 to Common/Data.
...
Also move colorutil.cpp/h
linking build fix experiment
Delete a bunch of unused CMakeLists.txt files
CMakeLists.txt linking fix
Don't include NativeApp.h from any headers.
Android.mk buildfix
Half of the UWP fix
Buildfix
Minor project file cleanup
Buildfixes
Guess what? More buildfixes!
2020-10-04 07:28:29 +02:00
shenweip
c84f9542d7
Savedata:Corrects the performances when the data is broken.
2020-10-01 15:41:27 +08:00
shenweip
b8c1845e3a
Savedata:Supports empty file name for save/load/delete.
2020-10-01 10:03:30 +08:00
shenweip
925944d5b2
Savedata:Improves the deleting functions.
2020-10-01 00:39:14 +08:00
shenweip
290efbc349
Check whether there may be more than one save file names by mode.
2020-09-15 21:48:55 +08:00
Henrik Rydgård
72df3fd339
Try unknown's workaround for clang code gen bug. See #13187 .
2020-09-13 09:13:47 +02:00
Henrik Rydgård
b652f62d19
SavedataParam: Be careful with const char* to string. Might help #13187
2020-08-26 22:17:42 +02:00
Henrik Rydgård
b43698a13d
Remove most instances of base/logging.h from Common, Core, GPU, more
2020-08-15 19:08:44 +02:00
Unknown W. Brackets
b8342fb8ec
SaveState: Rename ChunkFile files to Serialize.
...
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
4b4e3432cd
SaveState: Split Do() into a separate header.
2020-08-10 08:03:41 +00:00
Unknown W. Brackets
ab38c387ad
Io: Correct some error handling for OpenFile().
...
See #12433 .
2020-03-08 21:22:21 -07:00
Unknown W. Brackets
5009698cc0
Core: Use a shared_ptr for i18n categories.
...
This does not make them thread safe, but it reduces the chances of a crash
a bit (see #12594.)
2020-02-09 07:35:16 -08:00
Unknown W. Brackets
913121cf2b
Io: Consistently use error codes with OpenFile().
...
This gets rid of OpenWithError(), and just always returns a negative value
on error for OpenFile(). Also fixed the sequence rollover, which could've
returned 0.
0 should be considered a valid handle ideally, but left it never returning
0 to simplify cleanup in some areas.
2019-10-20 11:03:37 -07: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
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
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
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
LunaMoo
8826c031a6
Add ini-only "Savedata Upgrade" setting.
2017-10-04 17:16:21 +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
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
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
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
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
vnctdj
d7eba2061e
Consistently use *di for the Dialog i18n category
2015-07-01 23:26:55 +02:00
Chin
37f50a3792
Change to pass some arguments by reference
2015-03-01 16:49:00 +01:00
sum2012
20818f47bd
Add OSM in Save encryption failed
2015-01-28 05:26:58 +08:00
Lioncash
cd26b200b2
Core: Get rid of a few c_str/strlen calls
2014-12-03 17:15:05 -05:00
Unknown W. Brackets
dd497e5a02
Show an error when savedata can't be written.
...
Normally we'll log when the disk is full for files, but if we can't even
create the folder, we'll get errors trying to write into a non-existing
directory.
2014-11-02 13:30:00 -08:00
Unknown W. Brackets
d4e8bd96af
Handle disk full more properly in sceIoWrite().
2014-11-02 10:55:27 -08:00
Unknown W. Brackets
24ce3d11ed
Another typo.
2014-11-02 08:12:29 -08:00
Unknown W. Brackets
f55f69c07d
Fix dumb typo in space formatting func.
2014-11-01 19:19:06 -07: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
Henrik Rydgard
808f05da89
(Partially) slip thin3d underneath DrawBuffer.
2014-08-22 20:54:53 +02:00
Henrik Rydgard
7802bf57f0
Add sanity checks to refuse to delete bad savedata (resulted in devastating delete of SAVEDATA/ in MGS PW!)
...
Thanks QWEmct for reporting in #6600 .
This is not a full fix, really, a "NEW DATA" savegame should not show up in the delete list, but at least this prevents the bad thing from happening.
2014-07-21 20:29:41 +02:00
Unknown W. Brackets
b583e446e6
Skip reporting savedata stuff in known cases.
...
We were always doing 3 before for 5, so skip reporting it. Other cases
are the interesting ones.
2014-07-09 23:30:20 -07:00