shift pistol HUD sprite
[d2d-psx.git] / src / files.h
blob2197721628f8697851e834c5ec2d1d689486d250
1 /*
2 * Copyright (C) Prikol Software 1996-1997
3 * Copyright (C) Aleksey Volynskov 1996-1997
5 * This file is part of the Doom2D PSX project.
7 * Doom2D PSX 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 PSX 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 // 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 #define NUMSPMAPS 19
32 #define NUMMAPS 24
33 #define NUMMPMAPS (NUMMAPS - NUMSPMAPS)
35 typedef char wadname[8];
37 typedef struct {
38 long o, l;
39 char n[8];
40 } wad_t;
42 typedef struct {
43 long o, l;
44 char n[8];
45 int f;
46 } mwad_t;
48 void F_startup(void);
49 void F_addwad(char *);
50 void F_initwads(void);
51 void F_allocres(void);
53 // void F_preload(void);
54 void F_readstr(CDFILE*, char *, int);
55 void F_readstrz(CDFILE*, char *, int);
57 void F_loadres(int, void *, dword, dword);
58 int F_getresid(char *);
59 void F_getresname(char *, int);
60 int F_findres(char *);
61 int F_getsprid(char[4], int, int);
62 int F_getreslen(int);
63 void F_loadmap(char[8]);
64 void F_loadmus(char[8]);
65 void F_freemus(void);
66 void F_nextmus(char *);
68 void F_getsavnames(void);
69 void F_loadgame(int);
70 void F_savegame(int, char *);
72 void F_randmus(char *); //
74 char *F_getmapname(char *buf, int map);
76 extern char wads[MAX_WADS][__MAX_PATH];
77 extern int wad_num;