merge mapper code from FCEUX
[fceu.git] / git.h
CommitLineData
d97315ac 1#ifndef __FCEU_GIT\r
2#define __FCEU_GIT\r
3/* Mmm...git. Almost as funny as "gimp". */\r
4#define GIT_CART 0 /* Cart. */\r
5#define GIT_VSUNI 1 /* VS Unisystem. */\r
6#define GIT_FDS 2 /* Famicom Disk System. */\r
7#define GIT_NSF 3 /* NES Sound Format. */\r
8\r
9#define GIV_NTSC 0 /* NTSC emulation. */\r
10#define GIV_PAL 1 /* PAL emulation. */\r
11#define GIV_USER 2 /* What was set by FCEUI_SetVidSys(). */\r
12 \r
13typedef struct {\r
14 uint8 *name; /* Game name, UTF8 encoding */\r
386f5371 15 int mappernum;\r
d97315ac 16\r
17 int type; /* GIT_* */\r
18 int vidsys; /* Current emulated video system; GIV_* */\r
19 int input[2]; /* Desired input for emulated input ports 1 and 2; -1\r
20 for unknown desired input. */\r
21 int inputfc; /* Desired Famicom expansion port device. -1 for unknown\r
22 desired input. */\r
23 int cspecial; /* Special cart expansion: DIP switches, barcode\r
24 reader, etc.\r
25 */\r
26 uint8 MD5[16];\r
27 int soundrate; /* For Ogg Vorbis expansion sound wacky support. 0 for default. */\r
28 int soundchan; /* Number of sound channels. */\r
29} FCEUGI;\r
30#endif\r