X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=blobdiff_plain;f=src%2Ffiles.h;h=66896ed30b27bfaed67fe4cc898ef0c6af47da30;hp=e2d94f0d2183fad644a0310c67b532dd71309f55;hb=efb17348438f10c929e2e9807013969f71802661;hpb=2bb81ea2565c3627c954b5c37326db89b0048472 diff --git a/src/files.h b/src/files.h index e2d94f0..66896ed 100644 --- a/src/files.h +++ b/src/files.h @@ -43,27 +43,22 @@ typedef struct { } 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; +extern char wads[MAX_WADS][__MAX_PATH]; +extern FILE* wadh[MAX_WADS]; void F_startup (void); -void F_getsavnames (void); -void F_savegame (int n, char *s); -void F_loadgame (int n); -void F_addwad (char *fn); +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); -int F_findres (char *n); -int F_getresid (char *n); -void F_getresname (char *n, int r); -int F_getsprid (char n[4], int s, int d); +int F_findres (const char n[8]); +int F_getresid (const char n[8]); +void F_getresname (char n[8], int r); +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 */