1 /*
2 Copyright (C) 1994-1995 Apogee Software, Ltd.
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
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.
12 
13 See the GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 
19 */
20 #ifndef _w_wad_private
21 #define _w_wad_private
22 
23 #include "develop.h"
24 
25 #define CHECKPERIOD 20
26 
27 
28 #if ( SHAREWARE == 1 )
29 
30 #if ( DELUXE == 1)
31 #define WADCHECKSUM (54748)
32 #elif ( LOWCOST == 1)
33 #define WADCHECKSUM (12185)
34 #else
35 #ifdef DOS
36 #define WADCHECKSUM (45677)
37 #else
38 #define WADCHECKSUM (20567)
39 #endif
40 #endif
41 
42 #else
43 
44 #define WADCHECKSUM (24222)
45 
46 #endif
47 
48 //===============
49 //   TYPES
50 //===============
51 
52 
53 typedef struct
54 {
55         char            name[8];
56         int             handle,position,size;
57         int             byteswapped;
58 } lumpinfo_t;
59 
60 
61 typedef struct
62 {
63         char            identification[4];              // should be IWAD
64         int             numlumps;
65         int             infotableofs;
66 } wadinfo_t;
67 
68 
69 typedef struct
70 {
71         int             filepos;
72         int             size;
73         char            name[8];
74 } filelump_t;
75 
76 #endif
77