Mercurial > vba-clojure
diff src/gb/GB.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children | 3ce48d803e74 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/gb/GB.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,50 @@ 1.4 +#ifndef VBA_GB_H 1.5 +#define VBA_GB_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 +typedef union 1.15 +{ 1.16 + struct 1.17 + { 1.18 +#ifdef WORDS_BIGENDIAN 1.19 + u8 B1, B0; 1.20 +#else 1.21 + u8 B0, B1; 1.22 +#endif 1.23 + } B; 1.24 + u16 W; 1.25 +} gbRegister; 1.26 + 1.27 +extern bool gbLoadRom(const char *); 1.28 +extern void gbEmulate(int); 1.29 +extern bool gbIsGameboyRom(const char *); 1.30 +extern void gbSoundReset(); 1.31 +extern void gbSoundSetQuality(int); 1.32 +extern void gbReset(bool userReset = false); 1.33 +extern void gbCleanUp(); 1.34 +extern bool gbWriteBatteryFile(const char *); 1.35 +extern bool gbWriteBatteryFile(const char *, bool); 1.36 +extern bool gbWriteBatteryToStream(gzFile); 1.37 +extern bool gbReadBatteryFile(const char *); 1.38 +extern bool gbReadBatteryFromStream(gzFile); 1.39 +extern bool gbWriteSaveState(const char *); 1.40 +extern bool gbWriteMemSaveState(char *, int); 1.41 +extern bool gbReadSaveState(const char *); 1.42 +extern bool gbReadMemSaveState(char *, int); 1.43 +extern bool gbReadSaveStateFromStream(gzFile); 1.44 +extern bool gbWriteSaveStateToStream(gzFile); 1.45 +extern void gbSgbRenderBorder(); 1.46 +extern bool gbWritePNGFile(const char *); 1.47 +extern bool gbWriteBMPFile(const char *); 1.48 +extern bool gbReadGSASnapshot(const char *); 1.49 + 1.50 +extern struct EmulatedSystem GBSystem; 1.51 +extern struct EmulatedSystemCounters &GBSystemCounters; 1.52 + 1.53 +#endif // VBA_GB_H