mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-22 18:49:18 +01:00
c21ff25fac
others
30 lines
795 B
C
30 lines
795 B
C
#ifndef FLASH_H
|
|
#define FLASH_H
|
|
|
|
#define FLASH_128K_SZ 0x20000
|
|
|
|
#ifdef __LIBRETRO__
|
|
extern void flashSaveGame(u8 *& data);
|
|
extern void flashReadGame(const u8 *& data, int);
|
|
#else
|
|
extern void flashSaveGame(gzFile _gzFile);
|
|
extern void flashReadGame(gzFile _gzFile, int version);
|
|
#endif
|
|
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);
|
|
#ifdef __LIBRETRO__
|
|
extern uint8_t *flashSaveMemory;
|
|
#else
|
|
extern u8 flashSaveMemory[FLASH_128K_SZ];
|
|
#endif
|
|
extern void flashSaveDecide(u32 address, u8 byte);
|
|
extern void flashReset();
|
|
extern void flashSetSize(int size);
|
|
extern void flashInit();
|
|
|
|
extern int flashSize;
|
|
|
|
#endif // FLASH_H
|