From 6b1ac97d99599ed5e8d8557313237f3ebb102ead Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 2 May 2008 17:32:09 +0000 Subject: Add WAD I/O abstraction layer - first step for mmapped WAD access. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1133 --- src/w_wad.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/w_wad.h') diff --git a/src/w_wad.h b/src/w_wad.h index cb267dd3..85a42db8 100644 --- a/src/w_wad.h +++ b/src/w_wad.h @@ -32,6 +32,8 @@ #include "doomtype.h" +#include "w_file.h" + // // TYPES @@ -46,7 +48,7 @@ typedef struct lumpinfo_s lumpinfo_t; struct lumpinfo_s { char name[8]; - FILE *handle; + wad_file_t *wad_file; int position; int size; void *cache; @@ -61,7 +63,7 @@ extern void** lumpcache; extern lumpinfo_t* lumpinfo; extern unsigned int numlumps; -FILE *W_AddFile (char *filename); +wad_file_t *W_AddFile (char *filename); void W_Reload (void); int W_CheckNumForName (char* name); -- cgit v1.2.3