Commit Graph

43 Commits

Author SHA1 Message Date
Unknown W. Brackets
2f010773e1 Add rewind feature to the UI.
May not be perfect yet.
2013-11-02 18:33:23 -07:00
Unknown W. Brackets
79254c7a52 Fix some rewinding issues, better accessors. 2013-11-02 18:32:34 -07:00
Henrik Rydgård
70738c1755 Automatically clear the JIT when exiting the Cheats dialog box.
Plus some simple cleanup.
2013-10-23 16:10:58 +02:00
Henrik Rydgard
3af5a759b4 Log some save state errors 2013-10-13 13:46:44 +02:00
Sacha
7c644bda2c Remove c++11 usage of vector. 2013-10-04 23:14:54 +10:00
Unknown W. Brackets
b7fbf5942f Make save/load fail strings more consistent. 2013-09-29 20:24:23 -07:00
Unknown W. Brackets
5950c30e7b If loading state fails, rewind instead of reset. 2013-09-29 20:20:20 -07:00
Unknown W. Brackets
021e09f53b While unthrottled, checkpoint rewind less often. 2013-09-29 20:04:23 -07:00
Unknown W. Brackets
b3c6e6c012 Add basic support for rewinding (not enabled.) 2013-09-29 19:58:39 -07:00
Unknown W. Brackets
394d91371f Avoid clearing the jit cache on savestate.
Downside: saving state could "fix" some issues with games detecting jit,
which won't happen anymore.

However, it's now faster to savestate.
2013-09-29 14:26:13 -07:00
Unknown W. Brackets
418d6c1e83 Reset the game when loading a state fails.
This way it doesn't crash.
2013-09-14 21:19:10 -07:00
Unknown W. Brackets
2cca2568c7 Make sure the saved git ver is null terminated.
strncpy() is a tricky beast.
2013-09-14 20:29:01 -07:00
Unknown W. Brackets
50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Unknown W. Brackets
2ac5bcff1f Process savestates during single stepping.
This way we can handle them on the same thread, without weird delays.
2013-09-14 18:43:23 -07:00
Henrik Rydgard
91f9161d76 Fix some bugs found in reports in the Android crash reporting console 2013-09-11 22:21:32 +02:00
Unknown W. Brackets
f68ebfe230 Fix savestates while not running.
Fixes #2791.
2013-08-10 14:04:23 -07: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
a61117dec4 Correct function. 2013-07-17 03:34:43 -03:00
papel
9b6f1abed8 Version to savestate and open other game in other screens. 2013-07-17 02:33:26 -03:00
Unknown W. Brackets
a32cf817ff Fix some minor warnings. 2013-07-07 20:31:04 -07:00
The Dax
597f5431e0 Make keys look more natural in case we have an untranslated key, and give a generic error for the missing version/not found keys. 2013-06-24 05:09:45 -04:00
The Dax
7884df8013 Simplify error message via better translation key/message. 2013-06-24 04:47:12 -04:00
The Dax
a341d39720 Make failure reasons translatable. 2013-06-24 04:24:34 -04:00
The Dax
1a7cce2fc5 Fix a comment and remove an old comment. 2013-06-24 04:00:10 -04:00
The Dax
810dfac704 Restructure load/save failure message by reverting it back to the original and add a translation ini key instead. Much simpler, and cleaner. 2013-06-24 03:58:29 -04:00
The Dax
fe8c439614 Clean up slightly. 2013-06-24 03:08:24 -04:00
The Dax
3a0fe2f374 Add failure messages to savestates loading/saving. It's misleading to always say "Loaded state" or "Saved state", even if it fails. Plus, result was unused up to this point. 2013-06-24 02:58:21 -04:00
Henrik Rydgard
059aed36ee Add on-screen feedback for some keyboard shortcuts (so you know which setting was changed) 2013-05-22 18:00:06 +02: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
7c3c06fd23 Wait for the runloop to end in savestates/debug.
This way, even if the runloop hasn't checked coreState yet, we will wait.
2013-02-23 13:21:28 -08:00
Unknown W. Brackets
3ad565b4df Keep filehandles open properly when loading state. 2013-02-08 08:16:54 -08:00
Unknown W. Brackets
65ddd4d731 Fix --state not loading a savestate on startup.
Was scheduling some random event instead after 883f61e3dd.
2013-01-02 14:28:49 -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
Unknown W. Brackets
14ef840dd3 Add a command line option to load a state.
For debugging.
2012-12-28 17:23:05 -08:00
Henrik Rydgård
f9133c1a56 Reset JIT before saving/loading state 2012-12-29 00:10:43 +01:00
Henrik Rydgård
95c4e0b9c4 Quick build fix for gcc 2012-12-28 23:33:00 +01:00
Unknown W. Brackets
4b39e39455 Start save stating the filesystem state.
Plus minor fixes and at least an attempt to make states the same
on both 32 and 64 bit.
2012-12-28 13:55:27 -08:00
Unknown W. Brackets
e3e6f81dfa Snapshot the CPU state as well. 2012-12-28 13:55:27 -08:00
Unknown W. Brackets
91d727a65a Add CoreTiming to save states.
I hope DoLinkedList works, seems like it should.
2012-12-28 13:55:24 -08:00
Unknown W. Brackets
fbe4fd396e Add a mechanism to restore event callback ptrs.
Ugh, more duplicates.  Maybe can find a good way to refactor.
2012-12-28 13:55:24 -08:00
Unknown W. Brackets
570e8c812b Also handle save states while paused. 2012-12-28 13:55:23 -08: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