Debian Codegraph @

port/sdl/mygba.h

raw symbols SCIP
1 /*
2 * PROPRIETARY INFORMATION. This software is proprietary to POWDER
3 * Development, and is not to be reproduced, transmitted, or disclosed
4 * in any way without written permission.
5 *
6 * Produced by: Jeff Lait
7 *
8 * POWDER Development
9 *
10 * NAME: mygba.h ( POWDER Library, C++ )
11 *
12 * COMMENTS:
13 * This is a fake version of the HAM libraries mygba.h.
14 * It redefines the functions we need using hamfake.cpp.
15 */
16
17 #ifndef __mygba__
18 #define __mygba__
19
20 #define USING_SDL
21 #define HAS_DISKIO
22 #define HAS_STYLUS
23 #define HAS_PRINTF
24
25 #ifdef iPOWDER
26 #define USE_VIRTUAL_SCREEN
27 #define USE_EXTENDED_HEIGHT
28 #endif
29
30 #ifdef ANDROID
31 #define USE_VIRTUAL_SCREEN
32 #endif
33
34 // Not all SDL systems have the keyboard.
35 #if !defined(iPOWDER) && !defined(ANDROID)
36 #define HAS_KEYBOARD
37 #endif
38
39 #ifdef LINUX
40 #define stricmp(a, b) strcasecmp(a, b)
41 #endif
42
43 #ifdef _WIN32_WCE
44 char *strdup(const char *s);
45 #define stricmp _stricmp
46 #endif
47
48 // #define STRESS_TEST
49
50 typedef unsigned char u8;
51 typedef signed char s8;
52 typedef unsigned short u16;
53 typedef signed short s16;
54 typedef unsigned int u32;
55 typedef signed int s32;
56
57 #define INT_TYPE_VBL 0
58 #define INT_TYPE_HBL 1
59
60 #define WIN_BG0 0x01
61 #define WIN_BG1 0x02
62 #define WIN_BG2 0x04
63 #define WIN_BG3 0x08
64 #define WIN_OBJ 0x10
65
66 #include <string.h>
67 #include <stdio.h>
68 #include <stdlib.h>
69 #include <memory.h>
70
71 #include "hamfake.h"
72
73 #endif
74