-
Notifications
You must be signed in to change notification settings - Fork 1
/
InfoNES_Types.h
65 lines (54 loc) · 1.99 KB
/
InfoNES_Types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*===================================================================*/
/* */
/* InfoNES_Types.h : Type definitions for InfoNES */
/* */
/* 2000/5/4 InfoNES Project ( based on pNesX ) */
/* */
/*===================================================================*/
#ifndef InfoNES_TYPES_H_INCLUDED
#define InfoNES_TYPES_H_INCLUDED
/*-------------------------------------------------------------------*/
/* Type definition */
/*-------------------------------------------------------------------*/
#ifndef DWORD
typedef unsigned long DWORD;
#endif /* !DWORD */
#ifndef WORD
typedef unsigned short WORD;
#endif /* !WORD */
#ifndef BYTE
typedef unsigned char BYTE;
#endif /* !BYTE */
/*-------------------------------------------------------------------*/
/* NULL definition */
/*-------------------------------------------------------------------*/
#ifndef NULL
#define NULL 0
#endif /* !NULL */
/*-------------------------------------------------------------------*/
/* Config */
/*-------------------------------------------------------------------*/
#define WORKFRAME_DOUBLE 2
#define WORKFRAME_SINGLE 1
#define WORKFRAME_NONE 0
#if 1
#define WORKFRAME_DEFINE WORKFRAME_NONE
#define APU_NONE
#define TRANSPARENT_COLOR 0x0020
typedef WORD PIXEL;
#define RAM_LACK
#endif
#ifdef __MULTIPLATFORM__
#define WORKFRAME_DEFINE WORKFRAME_SINGLE
#define APU_NONE
#define TRANSPARENT_COLOR 0x00000001
typedef DWORD PIXEL;
#define RAM_LACK
#endif
#ifndef WORKFRAME_DEFINE
#define WORKFRAME_DEFINE WORKFRAME_SINGLE
#define TRANSPARENT_COLOR 0x8000
typedef WORD PIXEL;
//#define RAM_LACK
#endif
#endif /* !InfoNES_TYPES_H_INCLUDED */