From e1108dba69ad14fed7bc64f996ea09342c900a81 Mon Sep 17 00:00:00 2001 From: "SND\\ckain_cp" Date: Fri, 24 Jan 2014 13:59:46 +0000 Subject: 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 --- libpcsxcore/misc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libpcsxcore/misc.h') 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); -- cgit v1.2.3