Mercurial > vba-linux
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 #ifndef VBA_GB_H | |
2 #define VBA_GB_H | |
3 | |
4 #if _MSC_VER > 1000 | |
5 #pragma once | |
6 #endif // _MSC_VER > 1000 | |
7 | |
8 #include "zlib.h" | |
9 #include "../Port.h" | |
10 | |
11 typedef union | |
12 { | |
13 struct | |
14 { | |
15 #ifdef WORDS_BIGENDIAN | |
16 u8 B1, B0; | |
17 #else | |
18 u8 B0, B1; | |
19 #endif | |
20 } B; | |
21 u16 W; | |
22 } gbRegister; | |
23 | |
24 extern bool gbLoadRom(const char *); | |
25 extern void gbEmulate(int); | |
26 extern bool gbIsGameboyRom(const char *); | |
27 extern void gbSoundReset(); | |
28 extern void gbSoundSetQuality(int); | |
29 extern void gbReset(bool userReset = false); | |
30 extern void gbCleanUp(); | |
31 extern bool gbWriteBatteryFile(const char *); | |
32 extern bool gbWriteBatteryFile(const char *, bool); | |
33 extern bool gbWriteBatteryToStream(gzFile); | |
34 extern bool gbReadBatteryFile(const char *); | |
35 extern bool gbReadBatteryFromStream(gzFile); | |
36 extern bool gbWriteSaveState(const char *); | |
37 extern bool gbWriteMemSaveState(char *, int); | |
38 extern bool gbReadSaveState(const char *); | |
39 extern bool gbReadMemSaveState(char *, int); | |
40 extern bool gbReadSaveStateFromStream(gzFile); | |
41 extern bool gbWriteSaveStateToStream(gzFile); | |
42 extern void gbSgbRenderBorder(); | |
43 extern bool gbWritePNGFile(const char *); | |
44 extern bool gbWriteBMPFile(const char *); | |
45 extern bool gbReadGSASnapshot(const char *); | |
46 | |
47 extern struct EmulatedSystem GBSystem; | |
48 extern struct EmulatedSystemCounters &GBSystemCounters; | |
49 | |
50 #endif // VBA_GB_H |