diff options
| author | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-01-24 13:59:46 +0000 |
|---|---|---|
| committer | SND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-01-24 13:59:46 +0000 |
| commit | e1108dba69ad14fed7bc64f996ea09342c900a81 (patch) | |
| tree | a3798c4031cce49eeb5964ec9ae49a9627bc5a91 /gui/LnxMain.c | |
| parent | 47b0777b946e413500bc0420d91298aa4e8f8301 (diff) | |
| download | pcsxr-e1108dba69ad14fed7bc64f996ea09342c900a81.tar.gz | |
Added rewind feature. Currently only supported via GTK and needs SHM. Rewind save state depth is configured via RewindCount config param. Recommended value is 200 or so -> uses less than 1G of memory
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@88433 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'gui/LnxMain.c')
| -rwxr-xr-x | gui/LnxMain.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gui/LnxMain.c b/gui/LnxMain.c index 14c295cd..67cb75ac 100755 --- a/gui/LnxMain.c +++ b/gui/LnxMain.c @@ -502,6 +502,8 @@ void SysClose() { EmuShutdown(); ReleasePlugins(); + CleanupMemSaveStates(); + StopDebugger(); if (emuLog != NULL) fclose(emuLog); @@ -573,11 +575,17 @@ static void SysDisableScreenSaver() { } } +u8 rew_timer = 0u; // TODO: change to scaled ms based or psxcycle based void SysUpdate() { - PADhandleKey(PAD1_keypressed()); - PADhandleKey(PAD2_keypressed()); + PADhandleKey(PAD1_keypressed() ); + PADhandleKey(PAD2_keypressed() ); + + if (Config.RewindCount > 0 && rew_timer++ > 35) { + CreateRewindState(); + rew_timer = 0; + } - SysDisableScreenSaver(); + //SysDisableScreenSaver(); } /* ADB TODO Replace RunGui() with StartGui ()*/ |
