diff options
| author | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-02-04 10:15:07 +0000 |
|---|---|---|
| committer | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-02-04 10:15:07 +0000 |
| commit | 10b7afe174672aded1c96f200722050df5638523 (patch) | |
| tree | 5d11f078f85b819a425b83ed37a87ea3a33b865f /libpcsxcore/misc.c | |
| parent | b7cde3470383649d6fc07f06f9d1a345052ac21e (diff) | |
| download | pcsxr-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-x | libpcsxcore/misc.c | 12 |
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; + } } } |
