Mercurial > vba-clojure
diff src/gba/Flash.h @ 19:5e8e5083da94
brought in common and gba, fixed problems with outdated Makefile.am files in both of these packages
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 04 Mar 2012 14:33:52 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/gba/Flash.h Sun Mar 04 14:33:52 2012 -0600 1.3 @@ -0,0 +1,23 @@ 1.4 +#ifndef VBA_FLASH_H 1.5 +#define VBA_FLASH_H 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 + 1.11 +#include "zlib.h" 1.12 +#include "../Port.h" 1.13 + 1.14 +extern void flashSaveGame(gzFile gzFile); 1.15 +extern void flashReadGame(gzFile gzFile, int version); 1.16 +extern u8 flashRead(u32 address); 1.17 +extern void flashWrite(u32 address, u8 byte); 1.18 +extern u8 flashSaveMemory[0x20000 + 4]; 1.19 +extern void flashSaveDecide(u32 address, u8 byte); 1.20 +extern void flashReset(); 1.21 +extern void flashErase(); 1.22 +extern void flashSetSize(int size); 1.23 + 1.24 +extern int32 flashSize; 1.25 + 1.26 +#endif // VBA_FLASH_H