DEADSOFTWARE

Editing source tree for configuring with CMake
[flatwaifu.git] / src / files.h
1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
4 Copyright (C) <ARembo@gmail.com> 2011
6 This file is part of the Doom2D:Rembo project.
8 Doom2D:Rembo is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License version 2 as
10 published by the Free Software Foundation.
12 Doom2D:Rembo is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, see <http://www.gnu.org/licenses/> or
19 write to the Free Software Foundation, Inc.,
20 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 */
23 // File operations
25 ///#include <io.h>
26 //#include <fcntl.h>
27 #include <stdio.h>
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 void F_startup(void);
46 void F_addwad(char *);
47 void F_initwads(void);
48 void F_allocres(void);
49 //void F_preload(void);
50 void F_readstr(FILE*,char *,int);
51 void F_readstrz(FILE*,char *,int);
52 void F_loadres(int,void *,dword,dword);
53 int F_getresid(char *);
54 void F_getresname(char *,int);
55 int F_findres(char *);
56 int F_getsprid(char[4],int,int);
57 int F_getreslen(int);
58 void F_loadmap(char[8]);
59 void F_loadmus(char[8]);
60 void F_freemus(void);
61 void F_nextmus(char*);
63 void F_getsavnames(void);
64 void F_loadgame(int);
65 void F_savegame(int,char*);
67 void F_randmus(char*);//
69 extern char wads[MAX_WADS][__MAX_PATH];
70 extern int wad_num;