Subversion Repositories eduke32

Rev

Rev 3654 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3654 Rev 3708
Line 21... Line 21...
21
//-------------------------------------------------------------------------
21
//-------------------------------------------------------------------------
22
22
23
#ifndef __grpscan_h__
23
#ifndef __grpscan_h__
24
#define __grpscan_h__
24
#define __grpscan_h__
25
25
-
 
26
#define MAXLISTNAMELEN 32
-
 
27
26
// List of internally-known GRP files
28
// List of internally-known GRP files
27
#define NUMGRPFILES 12
29
#define NUMGRPFILES 12
28
30
29
#define DUKE13_CRC (int32_t)0xBBC9CE44
31
#define DUKE13_CRC (int32_t)0xBBC9CE44
30
#define DUKEKR_CRC (int32_t)0xAA4F6A40
32
#define DUKEKR_CRC (int32_t)0xAA4F6A40
Line 46... Line 48...
46
    ADDON_CARIBBEAN,
48
    ADDON_CARIBBEAN,
47
    NUMADDONS
49
    NUMADDONS
48
};
50
};
49
51
50
typedef struct grpfile {
52
typedef struct grpfile {
51
        const char *name;
53
        char *name;
52
        int32_t crcval;
54
        int32_t crcval;
53
        int32_t size;
55
        int32_t size;
54
        int32_t game;
56
        int32_t game;
55
    int32_t dependency;
57
    int32_t dependency;
56
    const char *scriptname;
58
    char *scriptname;
-
 
59
    char *defname;
57
        struct grpfile *next;
60
        struct grpfile *next;
58
} grpfile_type;
61
} grpfile_type;
59
62
60
extern struct grpfile grpfiles[NUMGRPFILES];
63
// extern struct grpfile grpfiles[NUMGRPFILES];
61
extern struct grpfile *foundgrps;
64
extern struct grpfile *foundgrps;
-
 
65
extern struct grpfile *listgrps;
62
66
63
extern struct grpfile * FindGroup(int32_t crcval);
67
extern struct grpfile * FindGroup(int32_t crcval);
64
int32_t ScanGroups(void);
68
int32_t ScanGroups(void);
65
void FreeGroups(void);
69
void FreeGroups(void);
66
70