42 Commits

Author SHA1 Message Date
Nicolas Adenis-Lamarre
f32b0dc9c3 previous slot shortcut
Signed-off-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
2023-05-25 11:32:49 +00:00
Henrik Rydgård
229e18420a
Merge pull request #14434 from unknownbrackets/savestate
SaveState: Show a warning when loading if saved after savestate
2021-08-07 17:23:26 +02:00
iota97
b643d60f72 Undo last save 2021-08-07 13:28:43 +02: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
iota97
157bbb99ae Address feedback 2021-08-05 09:16:10 +02:00
iota97
626dfb5bd7 Savestate load undo 2021-08-03 11:10:54 +02:00
Unknown W. Brackets
b74ecd5fa0 SaveState: Use Path instead of strings. 2021-05-14 23:00:22 -07:00
Henrik Rydgård
025bcb1673 Introduce Path, start using it all over the place.
Still lots left to convert!

Convert GetSysDirectory to return Path.

More buildfixing

Remove unnecessary Path( constructors
2021-05-13 10:39:16 +02:00
Unknown W. Brackets
8c655750fe SaveState: Delay restart handling until end frame.
Otherwise, we end up having unmatched pushbuffer map/unmap.
2021-02-21 08:18:13 -08: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
Henrik Rydgård
bf4db22165 SaveState: On section version failure, log out the name of the bad section.
Also some other minor improvements to logging and comments.
2020-08-02 17:11:09 +02:00
Henrik Rydgård
5e7a837ff9 Display the savestate slot number when saving and loading state through shortcuts. 2020-05-16 15:20:22 +02:00
hissingshark
7fd7afeba9 Added "oldest save" and "slots 1-5" as options for "auto load savestate" 2018-06-25 21:45:51 +01:00
Unknown W. Brackets
a5efb85ab7 SaveState: Show warning on old / long use state.
Using save states instead of in game saves causes bugs in games, and
preserves bugs from bad settings and old PPSSPP versions.

This tells users when they might be affected.
2018-06-14 18:29:55 -07:00
Unknown W. Brackets
2ee8dd7752 SaveState: Keep an undo for each slot by default. 2018-03-17 23:18:25 -07:00
Florent Castelli
e0ff68b3f6 c++11: Remove compat header base/functional.h
We want a proper C++11, not tr1. We don't target those compilers anyway.
2016-10-12 11:32:45 +02:00
Unknown W. Brackets
5faa65d9a9 Compress rewind snapshots off thread.
This can take a chunk of time, and doesn't need to finish until next frame
anyway, so we have plenty of time to do it.
2016-09-24 10:37:30 -07:00
Unknown W. Brackets
27d135d48a Decouple save states from UI.
It's the UI's job to decide how and what things are displayed, not Core's.
This also reduces reasons for linkage issues.
2016-05-27 21:25:05 -07:00
Unknown W. Brackets
ef566a3adf SaveState: Clean up some constant usage. 2016-02-28 18:21:57 -08:00
Unknown W. Brackets
9ff8d719de Add function to determine ppst title. 2016-01-23 13:06:30 -08:00
Unknown W. Brackets
6a5096e546 Save the game title in savestates, if available.
So that the UI can show them.  Old savestates still load fine, just don't
have the title.
2016-01-23 12:56:36 -08:00
Henrik Rydgard
8996f58693 Generate save state IDs for homebrew using the elf or directory name where applicable. 2015-09-25 19:27:40 +02:00
Henrik Rydgard
001eda39e0 Add really primitive save preview on "Next Slot". Improve pause screen layout a little. 2015-02-01 18:04:50 +01:00
Henrik Rydgard
a125178b0b Add a popup dialog when clicking savestate screenshots 2014-12-31 20:43:29 +01:00
Unknown W. Brackets
c52b73393b Try default constructors for Symbian. 2014-12-20 23:39:44 -08:00
Unknown W. Brackets
3f0b759746 Switch to std::function for savestate callbacks. 2014-12-20 22:23:26 -08:00
Unknown W. Brackets
996fa39684 Reduce some unnecessary includes in Core/. 2014-03-15 10:41:07 -07:00
Unknown W. Brackets
a8b55c3e10 Keep track of whether a savestate has been used.
Mostly to improve info we get in reporting.
2014-02-09 17:39:15 -08:00
zack-vii
26fbb4c32c "Next Slot" control mapping
-added "Next Slot" to control mapping menu
-added VIRTKEY_NEXT_SLOT -> incremented VIRTKEY_TOGGLE_FULLSCREEN
-added SaveState::NextSlot(); as replacement for code in
WndMainWindow
-added entry in EmuScreen using SaveState::NextSlot();
2014-01-07 15:56:04 +01:00
Henrik Rydgård
7c7c4aaadc Add "u_time" uniform to postprocessing shaders. 2013-12-02 17:24:55 +01:00
Henrik Rydgård
40bd1fa650 Add freeze-frame to developer menu. Only useful for developing, like when using nVidia PerfHud. 2013-11-15 13:11:44 +01:00
Unknown W. Brackets
79254c7a52 Fix some rewinding issues, better accessors. 2013-11-02 18:32:34 -07:00
Unknown W. Brackets
b3c6e6c012 Add basic support for rewinding (not enabled.) 2013-09-29 19:58:39 -07:00
Henrik Rydgard
2d39b3cb2c Update savestate revision 2013-08-20 18:31:38 +02:00
Unknown W. Brackets
dc56ab9e83 Treat savestates specially, no longer using events.
This makes it easier to run them on the GPU thread anyway, which is best
if they reset GPU caches etc., and should remove any timing related
issues.
2013-08-07 00:32:29 -07:00
papel
9b6f1abed8 Version to savestate and open other game in other screens. 2013-07-17 02:33:26 -03:00
Unknown W. Brackets
117ffaeb60 Include the git version in savestates.
This way we can provide better warnings when it fails to load.
2013-04-13 01:13:28 -07:00
Unknown W. Brackets
2a6457b6ab Cut down on h files including PointerWrap.
This makes changes to it a bit faster to build.
2013-02-04 08:26:59 -08: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
Henrik Rydgård
f9133c1a56 Reset JIT before saving/loading state 2012-12-29 00:10:43 +01:00
Unknown W. Brackets
2197d96989 Run save state operations at next Advance().
Should take some question marks out of things.
2012-12-28 13:55:23 -08:00
Unknown W. Brackets
abeaaa9105 Add Verify() method to quickly test states work. 2012-12-28 13:55:22 -08:00