X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fsave.h;h=dda7100d32c0232345f6084c62ab097ef8dc7dda;hb=HEAD;hp=a3033331e91622b1fbbff85fd647b9870ee6b0c8;hpb=563dffaf02ff36da4054f937fcc9f99a072e15bf;p=flatwaifu.git diff --git a/src/save.h b/src/save.h index a303333..272107f 100644 --- a/src/save.h +++ b/src/save.h @@ -1,16 +1,27 @@ +/* Copyright (C) 1996-1997 Aleksey Volynskov + * Copyright (C) 2011 Rambo + * Copyright (C) 2020 SovietPony + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3 of the License ONLY. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #ifndef SAVE_H_INCLUDED #define SAVE_H_INCLUDED -#include "glob.h" - -#define SAVE_MAX 7 -#define SAVE_MAXLEN 24 - -extern char savname[SAVE_MAX][SAVE_MAXLEN]; -extern char savok[SAVE_MAX]; +#include "common/streams.h" -void F_getsavnames (void); -void F_savegame (int n, char *s); -void F_loadgame (int n); +int SAVE_getname (Stream *r, char name[24]); +void SAVE_save (Stream *w, const char name[24]); +void SAVE_load (Stream *r); #endif /* SAVE_H_INCLUDED */