-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathid_heads.h
106 lines (76 loc) · 1.63 KB
/
id_heads.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ifndef __ID_HEADS_H__
#define __ID_HEADS_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <time.h>
#include <inttypes.h>
#ifndef __arm__
#include <glob.h>
#endif
#include <ctype.h>
#ifndef EMBEDDED
#include <math.h>
#endif
#ifdef __cplusplus
typedef bool boolean;
#else
#define true 1
#define false 0
typedef unsigned char boolean;
#endif
#define PACKED __attribute__((packed))
#include "version.h"
/* ------------------------------------------------------------------------ */
#ifndef SPEAR
#ifndef UPLOAD
#ifdef WOLF92
# include "gfxv_wl6_92.h"
#else
# include "gfxv_wl6.h"
#endif
#else
#include "gfxv_wl1.h"
#endif
#include "audiowl6.h"
#else /* SPEAR */
#ifndef SPEARDEMO
#include "gfxv_sod.h"
#else /* SPEARDEMO */
#include "gfxv_sdm.h"
#endif /* SPEARDEMO */
#include "audiosod.h"
#endif /* SPEAR */
/* ---------------- */
typedef uint8_t byte;
typedef uint16_t word;
typedef uint32_t longword;
typedef uint32_t dword;
typedef int32_t fixed;
typedef void * memptr;
#define myint int
#define myshort short
typedef unsigned short umyshort;
#include "misc.h"
#include "vi_comm.h"
#include "sd_comm.h"
#include "id_ca.h"
#include "id_vh.h"
#include "id_us.h"
extern const byte gamepal[];
myint MS_CheckParm(const char *string);
#if defined(LUMINARY) && !defined(DEBUG)
#define Quit(msg) do {} while (0)
#else
void Quit(const char *error);
#endif
#define TickBase 70 /* 70Hz per tick */
#undef PI
#define PI 3.1415926535897932384626433832795028841971693993751058209749445920f
#define MAXTICS 10
#define DEMOTICS 4
extern myint tics;
#define mapwidth 64
#define mapheight 64
#endif