DEADSOFTWARE

d6b60983402573ffa9f219e54594a890e33891a8
[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 // File operations
24 ///#include <io.h>
25 //#include <fcntl.h>
26 #include <stdio.h>
28 #define MAX_WADS 20
29 #define MAX_WAD 2000
31 typedef char wadname[8];
33 typedef struct {
34 int o,l;
35 char n[8];
36 }wad_t;
38 typedef struct {
39 int o,l;
40 char n[8];
41 int f;
42 }mwad_t;
44 void F_startup(void);
45 void F_addwad(char *);
46 void F_initwads(void);
47 void F_allocres(void);
48 //void F_preload(void);
49 void F_readstr(FILE*,char *,int);
50 void F_readstrz(FILE*,char *,int);
51 void F_loadres(int,void *,dword,dword);
52 int F_getresid(char *);
53 void F_getresname(char *,int);
54 int F_findres(char *);
55 int F_getsprid(char[4],int,int);
56 int F_getreslen(int);
57 void F_loadmap(char[8]);
58 void F_loadmus(char[8]);
59 void F_freemus(void);
60 void F_nextmus(char*);
62 void F_getsavnames(void);
63 void F_loadgame(int);
64 void F_savegame(int,char*);
66 void F_randmus(char*);//
68 extern char wads[MAX_WADS][__MAX_PATH];
69 extern int wad_num;
71 int F_getsprid(char n[4],int s,int d);
72 int F_getresid(char *n);