install: add install sources and resources
[doom2d-restoration.git] / GAME / FILES.H
blob7788f9bddf62b931d54a6965d5b8118f313bcfbc
1 // File operations
3 #include <io.h>
4 #include <fcntl.h>
6 #define MAX_WADS 20
7 #define MAX_WAD 2000
9 typedef char wadname[8];
11 typedef struct {
12   int o,l;
13   char n[8];
14 }wad_t;
16 typedef struct {
17   int o,l;
18   char n[8];
19   int f;
20 }mwad_t;
22 void F_startup(void);
23 void F_addwad(char *);
24 void F_initwads(void);
25 void F_allocres(void);
26 //void F_preload(void);
27 void F_readstr(int,char *,int);
28 void F_readstrz(int,char *,int);
29 void F_loadres(int,void *,dword,dword);
30 int F_getresid(char *);
31 void F_getresname(char *,int);
32 int F_findres(char *);
33 int F_getsprid(char[4],int,int);
34 int F_getreslen(int);
35 void F_set_snddrv(void);
36 void F_loadmap(char[8]);
37 void F_loadmus(char[8]);
38 void F_freemus(void);
40 extern char wads[][80];
41 extern int wad_num;