2008-08-06 03:09:59 +02:00
|
|
|
/****************************************************************************
|
2008-10-16 03:52:18 +02:00
|
|
|
* Snes9x 1.50
|
2008-08-06 03:09:59 +02:00
|
|
|
*
|
2008-10-16 03:52:18 +02:00
|
|
|
* Nintendo Gamecube Port
|
2008-08-06 03:09:59 +02:00
|
|
|
* softdev July 2006
|
2008-10-16 03:52:18 +02:00
|
|
|
* crunchy2 May 2007
|
2008-08-06 03:09:59 +02:00
|
|
|
*
|
2008-10-16 03:52:18 +02:00
|
|
|
* mcsave.cpp
|
2008-08-06 03:09:59 +02:00
|
|
|
*
|
2008-10-16 03:52:18 +02:00
|
|
|
* Memory Card Save Routines.
|
|
|
|
****************************************************************************/
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
#ifndef _NGCMCSAVE_
|
|
|
|
#define _NGCMCSAVE_
|
|
|
|
|
2008-10-16 03:52:18 +02:00
|
|
|
#define SAVEBUFFERSIZE ((512 * 1024) + 2048 + 64 + 4 + 4)
|
|
|
|
|
|
|
|
void ClearSaveBuffer ();
|
|
|
|
|
2008-08-06 03:09:59 +02:00
|
|
|
int VerifyMCFile (unsigned char *buf, int slot, char *filename, int datasize);
|
|
|
|
|
|
|
|
int LoadBufferFromMC (unsigned char *buf, int slot, char *filename, bool8 silent);
|
|
|
|
int SaveBufferToMC (unsigned char *buf, int slot, char *filename, int datasize, bool8 silent);
|
2008-10-16 03:52:18 +02:00
|
|
|
|
|
|
|
void LoadSRAMFromMC (int slot, int silent);
|
|
|
|
void SaveSRAMToMC (int slot, int silent);
|
|
|
|
|
|
|
|
void LoadPrefsFromMC (int slot, int silent);
|
|
|
|
void SavePrefsToMC (int slot, int silent);
|
2008-08-06 03:09:59 +02:00
|
|
|
|
|
|
|
#endif
|