summaryrefslogtreecommitdiff
path: root/libpcsxcore/misc.h
diff options
context:
space:
mode:
authorSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-01-24 13:59:46 +0000
committerSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2014-01-24 13:59:46 +0000
commite1108dba69ad14fed7bc64f996ea09342c900a81 (patch)
treea3798c4031cce49eeb5964ec9ae49a9627bc5a91 /libpcsxcore/misc.h
parent47b0777b946e413500bc0420d91298aa4e8f8301 (diff)
downloadpcsxr-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 'libpcsxcore/misc.h')
-rwxr-xr-xlibpcsxcore/misc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libpcsxcore/misc.h b/libpcsxcore/misc.h
index 626cf5c5..860c1d29 100755
--- a/libpcsxcore/misc.h
+++ b/libpcsxcore/misc.h
@@ -62,12 +62,20 @@ int CheckCdrom();
int Load(const char *ExePath);
int SaveState(const char *file);
+int SaveStateMem(const u32 id);
+int SaveStateGz(gzFile f, long* gzsize);
int LoadState(const char *file);
+int LoadStateMem(const u32 id);
+int LoadStateGz(gzFile f);
int CheckState(const char *file);
int SendPcsxInfo();
int RecvPcsxInfo();
+void CreateRewindState(); // Creates save state and stores it to volatile memory
+void RewindState(); // Restores state previously created with CreateRewindState();
+void CleanupMemSaveStates(); // Removes all save states stored by memory funcs like CreateRewindState()
+
void trim(char *str);
u16 calcCrc(u8 *d, int len);