2008-08-06 03:09:59 +02:00
|
|
|
/****************************************************************************
|
2008-09-12 07:28:40 +02:00
|
|
|
* Snes9x 1.51 Nintendo Wii/Gamecube Port
|
2008-08-14 00:44:59 +02:00
|
|
|
*
|
|
|
|
* softdev July 2006
|
|
|
|
* crunchy2 May 2007-July 2007
|
2008-11-12 08:50:39 +01:00
|
|
|
* Michniewski 2008
|
2008-08-14 00:44:59 +02:00
|
|
|
* Tantric August 2008
|
|
|
|
*
|
|
|
|
* freeze.h
|
2009-11-30 09:14:38 +01:00
|
|
|
*
|
|
|
|
* Snapshots Memory File System
|
|
|
|
*
|
|
|
|
* This is a single global memory file controller.
|
|
|
|
* Don't even think of opening two at the same time!
|
2008-09-12 07:28:40 +02:00
|
|
|
***************************************************************************/
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2009-11-25 07:35:14 +01:00
|
|
|
#ifndef _FREEZE_H_
|
|
|
|
#define _FREEZE_H_
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2009-11-30 09:14:38 +01:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
char filename[512]; /*** Way over size - but who cares -;) ***/
|
|
|
|
int filehandle;
|
|
|
|
int currpos;
|
|
|
|
int length;
|
|
|
|
int mode;
|
|
|
|
char *buffer; /*** Memspace for read / write ***/
|
|
|
|
}
|
|
|
|
MEMFILE;
|
|
|
|
|
2009-11-25 07:35:14 +01:00
|
|
|
int SaveSnapshot (char * filepath, bool silent);
|
|
|
|
int SaveSnapshotAuto (bool silent);
|
|
|
|
int LoadSnapshot (char * filepath, bool silent);
|
|
|
|
int LoadSnapshotAuto (bool silent);
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
#endif
|