DEADSOFTWARE

opengl: fix building on non osx
[flatwaifu.git] / src / files.h
1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
5 This file is part of the Doom2D:Rembo project.
7 Doom2D:Rembo is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as
9 published by the Free Software Foundation.
11 Doom2D:Rembo is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, see <http://www.gnu.org/licenses/> or
18 write to the Free Software Foundation, Inc.,
19 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
22 #ifndef FILES_H_INCLUDED
23 #define FILES_H_INCLUDED
25 #include "glob.h"
26 #include <stdio.h> // FILE
27 #include "map.h" // map_block_t
29 #define MAX_WADS 20
30 #define MAX_WAD 2000
32 typedef char wadname[8];
34 typedef struct {
35 int o, l;
36 char n[8];
37 } wad_t;
39 typedef struct {
40 int o, l;
41 char n[8];
42 int f;
43 } mwad_t;
45 extern int d_start, d_end;
46 extern byte savname[7][24];
47 extern byte savok[7];
48 extern mwad_t wad[MAX_WAD];
49 extern map_block_t blk;
51 void F_startup (void);
52 void F_getsavnames (void);
53 void F_savegame (int n, char *s);
54 void F_loadgame (int n);
55 void F_addwad (char *fn);
56 void F_initwads (void);
57 void F_allocres (void);
58 void F_loadres (int r, void *p, dword o, dword l);
59 int F_findres (const char n[8]);
60 int F_getresid (const char n[8]);
61 void F_getresname (char n[8], int r);
62 int F_getsprid (const char n[4], int s, int d);
63 int F_getreslen (int r);
64 void F_nextmus (char *s);
65 void F_randmus (char *s);
66 void F_readstr (FILE* h, char *s, int m);
67 void F_loadmap (char n[8]);
69 #endif /* FILES_H_INCLUDED */