DEADSOFTWARE

save: use streams for saves
[flatwaifu.git] / src / save.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 SAVE_H_INCLUDED
19 #define SAVE_H_INCLUDED
21 #include "glob.h"
22 #include "my.h"
24 #include "common/streams.h"
26 #define SAVE_MAX 7
27 #define SAVE_MAXLEN 24
29 extern char savname[SAVE_MAX][SAVE_MAXLEN];
30 extern char savok[SAVE_MAX];
32 void F_getsavnames (void);
33 void F_savegame (int n, char *s);
34 void F_loadgame (int n);
36 void SAVE_save (Writer *w, const char name[24]);
37 void SAVE_load (Reader *r);
39 #endif /* SAVE_H_INCLUDED */