2009-01-10 03:41:39 +01:00
|
|
|
#ifndef FLASH_H
|
|
|
|
#define FLASH_H
|
2008-09-23 01:00:10 +02:00
|
|
|
|
2016-06-05 00:59:43 +02:00
|
|
|
#define FLASH_128K_SZ 0x20000
|
|
|
|
|
|
|
|
#ifdef __LIBRETRO__
|
|
|
|
extern void flashSaveGame(u8 *& data);
|
|
|
|
extern void flashReadGame(const u8 *& data, int);
|
|
|
|
#else
|
2008-09-23 01:00:10 +02:00
|
|
|
extern void flashSaveGame(gzFile _gzFile);
|
|
|
|
extern void flashReadGame(gzFile _gzFile, int version);
|
2016-06-05 00:59:43 +02:00
|
|
|
#endif
|
2008-09-23 01:00:10 +02:00
|
|
|
extern void flashReadGameSkip(gzFile _gzFile, int version);
|
|
|
|
extern u8 flashRead(u32 address);
|
|
|
|
extern void flashWrite(u32 address, u8 byte);
|
|
|
|
extern void flashDelayedWrite(u32 address, u8 byte);
|
2016-06-05 00:59:43 +02:00
|
|
|
#ifdef __LIBRETRO__
|
|
|
|
extern uint8_t *flashSaveMemory;
|
|
|
|
#else
|
|
|
|
extern u8 flashSaveMemory[FLASH_128K_SZ];
|
|
|
|
#endif
|
2008-09-23 01:00:10 +02:00
|
|
|
extern void flashSaveDecide(u32 address, u8 byte);
|
|
|
|
extern void flashReset();
|
|
|
|
extern void flashSetSize(int size);
|
|
|
|
extern void flashInit();
|
|
|
|
|
|
|
|
extern int flashSize;
|
2009-01-10 03:41:39 +01:00
|
|
|
|
|
|
|
#endif // FLASH_H
|