summaryrefslogtreecommitdiff
path: root/libpcsxcore/misc.c
diff options
context:
space:
mode:
authorSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-02-04 10:15:07 +0000
committerSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-02-04 10:15:07 +0000
commit10b7afe174672aded1c96f200722050df5638523 (patch)
tree5d11f078f85b819a425b83ed37a87ea3a33b865f /libpcsxcore/misc.c
parentb7cde3470383649d6fc07f06f9d1a345052ac21e (diff)
downloadpcsxr-10b7afe174672aded1c96f200722050df5638523.tar.gz
Rewind: states are now made after n vblanks and platform independ way. Also GTK GUI to configure values. By default this feature is disabled (0 vblanks and 0 states)
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@88837 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/misc.c')
-rwxr-xr-xlibpcsxcore/misc.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c
index 92bb12c5..26e456cc 100755
--- a/libpcsxcore/misc.c
+++ b/libpcsxcore/misc.c
@@ -528,11 +528,13 @@ u32 mem_cur_save_count=0, mem_last_save;
boolean mem_wrapped=FALSE; // Whether we went past max count and restarted counting
void CreateRewindState() {
- SaveStateMem(mem_last_save=mem_cur_save_count++);
-
- if (mem_cur_save_count > Config.RewindCount) {
- mem_cur_save_count = 0;
- mem_wrapped=TRUE;
+ if (Config.RewindCount > 0) {
+ SaveStateMem(mem_last_save=mem_cur_save_count++);
+
+ if (mem_cur_save_count > Config.RewindCount) {
+ mem_cur_save_count = 0;
+ mem_wrapped=TRUE;
+ }
}
}