2018-12-03 12:26:02 +01:00
|
|
|
/*****************************************************************************\
|
|
|
|
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
|
|
|
|
This file is licensed under the Snes9x License.
|
|
|
|
For further information, consult the LICENSE file in the root directory.
|
|
|
|
\*****************************************************************************/
|
2008-09-10 07:57:37 +02:00
|
|
|
|
2009-11-30 09:14:38 +01:00
|
|
|
|
2008-08-06 03:09:59 +02:00
|
|
|
#ifndef _SNAPSHOT_H_
|
|
|
|
#define _SNAPSHOT_H_
|
|
|
|
|
2018-11-12 00:57:16 +01:00
|
|
|
#include "snes9x.h"
|
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
#define SNAPSHOT_MAGIC "#!s9xsnp"
|
2018-11-12 02:31:52 +01:00
|
|
|
#define SNAPSHOT_VERSION_IRQ 7
|
|
|
|
#define SNAPSHOT_VERSION_BAPU 8
|
|
|
|
#define SNAPSHOT_VERSION_IRQ_2018 11 // irq changes were introduced earlier, since this we store NextIRQTimer directly
|
|
|
|
#define SNAPSHOT_VERSION 11
|
2010-01-27 23:08:56 +01:00
|
|
|
|
|
|
|
#define SUCCESS 1
|
|
|
|
#define WRONG_FORMAT (-1)
|
|
|
|
#define WRONG_VERSION (-2)
|
|
|
|
#define FILE_NOT_FOUND (-3)
|
|
|
|
#define WRONG_MOVIE_SNAPSHOT (-4)
|
|
|
|
#define NOT_A_MOVIE_SNAPSHOT (-5)
|
|
|
|
#define SNAPSHOT_INCONSISTENT (-6)
|
|
|
|
|
|
|
|
void S9xResetSaveTimer (bool8);
|
|
|
|
bool8 S9xFreezeGame (const char *);
|
2018-11-12 00:57:16 +01:00
|
|
|
uint32 S9xFreezeSize (void);
|
|
|
|
bool8 S9xFreezeGameMem (uint8 *,uint32);
|
2010-01-27 23:08:56 +01:00
|
|
|
bool8 S9xUnfreezeGame (const char *);
|
2018-11-12 00:57:16 +01:00
|
|
|
int S9xUnfreezeGameMem (const uint8 *,uint32);
|
2008-08-06 03:09:59 +02:00
|
|
|
void S9xFreezeToStream (STREAM);
|
2010-01-27 23:08:56 +01:00
|
|
|
int S9xUnfreezeFromStream (STREAM);
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
#endif
|