Subversion Repositories eduke32

Rev

Rev 3116 | Rev 3708 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3116 Rev 3654
Line 22... Line 22...
22
22
23
#ifndef __grpscan_h__
23
#ifndef __grpscan_h__
24
#define __grpscan_h__
24
#define __grpscan_h__
25
25
26
// List of internally-known GRP files
26
// List of internally-known GRP files
27
#define NUMGRPFILES 9
27
#define NUMGRPFILES 12
-
 
28
-
 
29
#define DUKE13_CRC (int32_t)0xBBC9CE44
-
 
30
#define DUKEKR_CRC (int32_t)0xAA4F6A40
-
 
31
#define DUKE15_CRC (int32_t)0xFD3DCFF1
-
 
32
#define DUKEPP_CRC (int32_t)0xF514A6AC
-
 
33
#define DUKESW_CRC (int32_t)0x983AD923
-
 
34
#define DUKEMD_CRC (int32_t)0xC5F71561
-
 
35
#define DUKEDC_CRC (int32_t)0xA8CF80DA
-
 
36
#define DUKECB_CRC (int32_t)0x18F01C5B
-
 
37
#define DUKENW_CRC (int32_t)0xF1CAE8E4
-
 
38
#define NAM_CRC    (int32_t)0x75C1F07B
-
 
39
#define NAPALM_CRC (int32_t)0x3DE1589A
-
 
40
#define WW2GI_CRC  (int32_t)0x907B82BF
-
 
41
-
 
42
enum addon_t {
-
 
43
    ADDON_NONE,
-
 
44
    ADDON_DUKEDC,
-
 
45
    ADDON_NWINTER,
-
 
46
    ADDON_CARIBBEAN,
-
 
47
    NUMADDONS
-
 
48
};
-
 
49
28
typedef struct grpfile {
50
typedef struct grpfile {
29
        const char *name;
51
        const char *name;
30
        int32_t crcval;
52
        int32_t crcval;
31
        int32_t size;
53
        int32_t size;
32
        int32_t game;
54
        int32_t game;
-
 
55
    int32_t dependency;
-
 
56
    const char *scriptname;
33
        struct grpfile *next;
57
        struct grpfile *next;
34
} grpfile_type;
58
} grpfile_type;
35
59
36
extern struct grpfile grpfiles[NUMGRPFILES];
60
extern struct grpfile grpfiles[NUMGRPFILES];
37
extern struct grpfile *foundgrps;
61
extern struct grpfile *foundgrps;
38
62
-
 
63
extern struct grpfile * FindGroup(int32_t crcval);
39
int32_t ScanGroups(void);
64
int32_t ScanGroups(void);
40
void FreeGroups(void);
65
void FreeGroups(void);
41
66
42
#endif
67
#endif