DEADSOFTWARE

streams: new method: getlen
[flatwaifu.git] / src / files.h
1 /* Copyright (C) 1996-1997 Aleksey Volynskov
2 * Copyright (C) 2011 Rambo
3 * Copyright (C) 2020 SovietPony
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3 of the License ONLY.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
18 #ifndef FILES_H_INCLUDED
19 #define FILES_H_INCLUDED
21 #include "glob.h"
23 #define SAVE_MAX 7
24 #define SAVE_MAXLEN 24
26 extern char savname[SAVE_MAX][SAVE_MAXLEN];
27 extern char savok[SAVE_MAX];
28 extern int d_start, d_end;
30 void F_startup (void);
31 void F_addwad (const char *fn);
32 void F_initwads (void);
33 void F_allocres (void);
34 void F_loadres (int r, void *p);
35 int F_findres (const char n[8]);
36 int F_getresid (const char n[8]);
37 void F_getresname (char n[8], int r);
38 int F_getsprid (const char n[4], int s, int d, char *dir);
39 int F_getreslen (int r);
41 void F_nextmus (char *s);
42 void F_randmus (char *s);
44 void F_loadmap (char n[8]);
46 void F_getsavnames (void);
47 void F_savegame (int n, char *s);
48 void F_loadgame (int n);
50 #endif /* FILES_H_INCLUDED */