X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Ffiles.h;h=e1b30b56609cc41dafc45b2b3cec5076beceb54d;hb=10bdd396f0cd0ff1fc0a504cd41949ff39937b30;hp=01f2087968a1862f9cad1642a4d4faf00c98bf83;hpb=2b481ae25adcf3bebf37be182eafc8bfa0acb4c1;p=flatwaifu.git diff --git a/src/files.h b/src/files.h index 01f2087..e1b30b5 100644 --- a/src/files.h +++ b/src/files.h @@ -1,61 +1,32 @@ -/* - Copyright (C) Prikol Software 1996-1997 - Copyright (C) Aleksey Volynskov 1996-1997 - - This file is part of the Doom2D:Rembo project. - - Doom2D:Rembo is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2 as - published by the Free Software Foundation. - - Doom2D:Rembo 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 or - write to the Free Software Foundation, Inc., - 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +/* 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 FILES_H_INCLUDED #define FILES_H_INCLUDED #include "glob.h" -#include // FILE -#include "map.h" // map_block_t - -#define MAX_WADS 20 -#define MAX_WAD 2000 - -typedef char wadname[8]; - -typedef struct { - int o, l; - char n[8]; -} wad_t; - -typedef struct { - int o, l; - char n[8]; - int f; -} mwad_t; extern int d_start, d_end; -extern byte savname[7][24]; -extern byte savok[7]; -extern mwad_t wad[MAX_WAD]; -extern map_block_t blk; void F_startup (void); -void F_getsavnames (void); -void F_savegame (int n, char *s); -void F_loadgame (int n); void F_addwad (const char *fn); void F_initwads (void); void F_allocres (void); -void F_loadres (int r, void *p, dword o, dword l); +void F_loadres (int r, void *p); int F_findres (const char n[8]); int F_getresid (const char n[8]); void F_getresname (char n[8], int r); @@ -63,7 +34,7 @@ int F_getsprid (const char n[4], int s, int d, char *dir); int F_getreslen (int r); void F_nextmus (char *s); void F_randmus (char *s); -void F_readstr (FILE* h, char *s, int m); + void F_loadmap (char n[8]); #endif /* FILES_H_INCLUDED */