Commit graph

641 commits

Author SHA1 Message Date
Henrik Rydgård
de3d711616 Move FixPathCase to Common/File/Path 2021-09-11 21:17:23 +02:00
Henrik Rydgård
b05a74803d Remove another redundant check, comment fixes 2021-09-11 20:31:42 +02:00
Henrik Rydgård
71056e3486 SFO return value fix, oops 2021-09-11 20:26:36 +02:00
Henrik Rydgård
36079b86d0 Optimize away a couple of existence checks 2021-09-11 19:53:19 +02:00
Henrik Rydgård
5d53e59c1d Optimize ReadPSPFile (which should probably be replaced with ReadEntireFile anyway) 2021-09-11 19:33:28 +02:00
Henrik Rydgård
8e2b73b05f Optimize MetaFileSystem::ReadEntireFile 2021-09-11 19:32:37 +02:00
Unknown W. Brackets
a5fce6d0b2 Savedata: Use PARAM.SFO constant properly. 2021-08-23 23:01:02 -07:00
Unknown W. Brackets
f530be0969 Dialog: Prevent reschedule on shutdown start.
This is a bit strange, but tests seem to suggest this is correct.
A worse priority thread won't run before savedata shutdown hits 0, but the
thread that initiated shutdown runs before shutdown completes.

Fixes Freakout Extreme Freeride loading savedata.
2021-08-14 20:15:34 -07:00
Unknown W. Brackets
aecb138f90 Dialog: Avoid crash with hacked dialog start.
See #14727.  If a dialog shutdown is in progress and we incorrectly allow
a startup at that time, it breaks other things.  This tries to at least
work around that.
2021-08-14 07:46:38 -07:00
Unknown W. Brackets
eba67d5fcd SaveState: Show a warning if saved after savestate.
If you load a save state from before you created savedata (or from a
different path of savedata), some games will refuse to save.  This shows a
warning since it can be a confusing situation.

We could potentially add an undo for loading state, to give an option for
getting back after this warning.
2021-08-07 00:01:20 -07:00
Henrik Rydgård
64dbd97731 Address feedback 2021-08-04 23:22:43 +02:00
Henrik Rydgård
e73e0dc0be Fix multiple issues preventing in-game saves from working. 2021-07-19 17:34:51 +02:00
sum2012
664f02114a Add some PPSSPP's Japanese keyboard
fix #14311
2021-06-20 22:38:25 +08:00
Henrik Rydgård
f4a6d291e1 Common: Capitalize setCurrentThreadName(). 2021-04-30 23:02:36 -07:00
Unknown W. Brackets
90f4098b3d Dialog: Lock volatile on thread.
This means it doesn't matter if GetStatus is called.
2021-04-07 18:13:51 -07:00
Unknown W. Brackets
429b4594d0 Dialog: Use a thread to init dialogs too. 2021-04-07 18:13:46 -07:00
Henrik Rydgård
28065c1bc4
Merge pull request #14359 from unknownbrackets/dialog-cleanup
Move dialog instances to the heap
2021-04-07 09:26:07 +02:00
Unknown W. Brackets
7b5d8bc38f Utility: Move dialog classes to heap.
This makes it easier to properly reset them on game reset.
2021-04-06 21:59:40 -07:00
Unknown W. Brackets
a23c9e6a41 GPU: Preconvert light vecs to Vec3f.
This might align better for simd anyway, but should also prevent any
memory over-reads.  See #14353.
2021-04-05 20:55:52 -07:00
Henrik Rydgård
e86e3cc7cd
Merge pull request #14344 from unknownbrackets/debugger-mem
Include more memory info in debugger tags
2021-04-04 11:20:33 +02:00
Unknown W. Brackets
869ef9aca7 Debugger: Tag savedata load and info. 2021-04-03 18:45:24 -07:00
Unknown W. Brackets
1b57739eb7 Debugger: Memcheck and tag loading savedata to RAM. 2021-04-03 18:28:22 -07:00
Henrik Rydgård
3a14c432ff
Merge pull request #14327 from unknownbrackets/sanitize-utf8
PPGe: Remove ENTR hack, fix string concat
2021-03-29 13:34:50 +02:00
Unknown W. Brackets
fe83f21df5 PPGe: Remove ENTR hack, fix string concat.
Sanitize first, then concatenate.  This replicates the firmware behavior
nicely.
2021-03-29 00:21:26 -07:00
Unknown W. Brackets
d0303e2430 Savedata: Always write the file list to the SFO.
Matches tests on hardware using MAKEDATA, see also #8854.
2021-03-29 00:08:48 -07:00
ANR2ME
b0503d71f7 Fix Teenage Mutant Ninja Turtles Multiplayer.
Alternatively, changing NET_SHUTDOWN_DELAY_US to 501000 usec or more will also works.
2021-03-13 13:50:48 +07:00
Unknown W. Brackets
13ec384dbe Build: Explicitly include ppsspp_config.h.
This adds it to all files that use it.  Not all our builds include the
file.
2021-03-02 21:04:03 -08:00
Unknown W. Brackets
88fe2e9863 Dialog: Use dialog type header more consistently. 2021-02-27 13:43:12 -08:00
Unknown W. Brackets
52c5f4bf95 Dialog: Respect accessThread priority on shutdown.
This influences shutdown timing.
2021-02-27 13:15:12 -08:00
Unknown W. Brackets
d066b39334 Screenshot: Provide common params properly. 2021-02-27 12:51:56 -08:00
Unknown W. Brackets
aa13f5afb7 Dialog: Track type id on dialog class. 2021-02-27 12:01:52 -08:00
Unknown W. Brackets
2b9b157151 Savedata: Eat cycles in savedata shutdown start. 2021-02-27 10:35:26 -08:00
Henrik Rydgård
2f3bc2d373
Merge pull request #14056 from unknownbrackets/debugger-mem
Track memory allocations and writes for debug info
2021-02-21 10:18:11 +01:00
Unknown W. Brackets
2a9dde684d Dialog: Unlock volatile without Update call.
Crisis Core depends on this unlocking, likely it should really be on a
thread.
2021-02-16 19:15:09 -08:00
Unknown W. Brackets
e7b968be73 Debugger: Notate Memcpys directly as well. 2021-02-15 15:01:23 -08:00
Henrik Rydgård
71b1c9dfea
Merge pull request #14150 from unknownbrackets/dialog
Dialog: Clear volatile memory on unlock
2021-02-15 23:37:55 +01:00
Unknown W. Brackets
d2348897cb Dialog: Clear volatile memory on unlock.
Approximates firmware behavior.
2021-02-15 14:08:16 -08:00
Unknown W. Brackets
e85a8b0f5b Global: Cleanup class init order warnings. 2021-02-15 11:59:45 -08:00
Henrik Rydgård
5ed5947804
Merge pull request #13943 from unknownbrackets/dialog
Dialog: Simulate volatile memory lock behavior
2021-02-15 16:47:06 +01:00
Henrik Rydgård
1c3c384289
Merge pull request #14079 from unknownbrackets/ppge-aspect
Savedata: Show save icons with proper aspect ratio
2021-02-15 11:20:41 +01:00
Unknown W. Brackets
0ffac20fcd Common: Include unistd.h before ctime on mingw.
This is required for localtime_r and similar to be available.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
2c165c9b6d Windows: Fix improper case or missing includes.
As per mingw errors/warnings.
2021-02-14 10:30:10 -08:00
Unknown W. Brackets
788e8c3bbc Io: Truncate reads/writes to valid memory.
A PSP might crash in these cases, but it's better if we avoid a crash.
2021-02-13 08:24:39 -08:00
Unknown W. Brackets
f798d9fe4b Savedata: Show save icons with proper aspect ratio.
This mainly matters for Minis.
2021-02-07 23:39:12 -08:00
Unknown W. Brackets
c2415d7593 Savedata: Show corrupted data more clearly.
Include the folder name and show a darkened icon so it's clearer.
2021-02-07 23:18:39 -08:00
Unknown W. Brackets
e42dac2fb4 Dialog: Simulate volatile memory lock behavior.
Also simply clear to zero, which isn't exactly correct but should be
fairly close.  See #8288 (NBA Live 08 hang.)
2021-01-18 11:07:21 -08:00
Unknown W. Brackets
8bd32b6009 Dialog: Manage status only through accessors. 2021-01-18 10:46:57 -08:00
vnctdj
5dd71db818 Improve some i18n things
- reuse some translations
- move some strings to a more suitable category

I will adapt the lang .ini files accordingly.
2021-01-09 18:50:00 +01:00
Unknown W. Brackets
3316633c60 Savedata: Reduce some noisy logging.
These aren't errors.
2021-01-05 07:21:41 -08:00
Unknown W. Brackets
4573907098 Savedata: Prevent garbage bleeding into save icons.
This pads out the icon data and also fixes a potential buffer overflow
during image data copy.
2021-01-03 16:26:31 -08:00