6 #define EM_GFX_DIR "graphics.EM"
7 #define EM_SND_DIR "sounds.EM"
8 #define EM_LVL_DIR "levels.EM"
10 /* arbitrary maximum length of filenames (cos i am lazy) */
14 extern char *progname;
15 extern char *arg_basedir;
19 extern short ulaw_to_linear[256];
20 extern unsigned char linear_to_ulaw[65536];
22 /* all global function prototypes */
28 void readjoy(byte, struct PLAYER *);
32 void input_eventloop(void);
34 void blitscreen(void);
35 void game_initscreen(void);
36 void game_animscreen(void);
38 void DrawGameDoorValues_EM();
40 void play_sound(int, int, int);
41 void sound_play(void);
43 int cave_convert(char *);
44 boolean LoadNativeLevel_EM(char *);
46 void game_init_vars(void);
47 void game_play_init(int, char *);
54 int cleanup_em_level(unsigned char *, int, char *);
55 void convert_em_level(unsigned char *, int);
56 void prepare_em_level(void);
58 int sound_thread(void);
59 int read_sample(char *, short **, long *);
61 void read_cave_list(void);
62 void free_cave_list(void);