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
22 #ifndef FILES_H_INCLUDED
23 #define FILES_H_INCLUDED
26 #include <stdio.h> // FILE
27 #include "map.h" // map_block_t
32 typedef char wadname
[8];
45 extern int d_start
, d_end
;
46 extern mwad_t wad
[MAX_WAD
];
47 extern map_block_t blk
;
49 void F_startup (void);
50 void F_addwad (const char *fn
);
51 void F_initwads (void);
52 void F_allocres (void);
53 void F_loadres (int r
, void *p
, dword o
, dword l
);
54 int F_findres (const char n
[8]);
55 int F_getresid (const char n
[8]);
56 void F_getresname (char n
[8], int r
);
57 int F_getsprid (const char n
[4], int s
, int d
, char *dir
);
58 int F_getreslen (int r
);
59 void F_nextmus (char *s
);
60 void F_randmus (char *s
);
61 void F_readstr (FILE* h
, char *s
, int m
);
62 void F_loadmap (char n
[8]);
64 #endif /* FILES_H_INCLUDED */