comparison src/dmpack.h @ 1033:c353e6bcb733

Change handling of filename field in PACKs.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 01 Mar 2015 16:39:46 +0200
parents 1684bf6aa1f8
children 2e9ba01294b3
comparison
equal deleted inserted replaced
1032:f8d75a51de2c 1033:c353e6bcb733
13 #define DPACK_VERSION (0x0120) // Version 13 #define DPACK_VERSION (0x0120) // Version
14 14
15 15
16 typedef struct _DMPackEntry 16 typedef struct _DMPackEntry
17 { 17 {
18 char filename[DMRES_NAME_LEN];
19 Uint32 size; // Size (UNCOMPRESSED) 18 Uint32 size; // Size (UNCOMPRESSED)
20 Uint32 offset; // Offset in pack file 19 Uint32 offset; // Offset in pack file
21 Uint32 length; // (Compressed) data length 20 Uint32 length; // (Compressed) data length
21 char filename[DMRES_NAME_LEN + 1]; // +1 for NUL byte
22 22
23 Uint32 flags, privFlags; 23 Uint32 flags, privFlags;
24 24
25 struct _DMPackEntry *next, *prev; 25 struct _DMPackEntry *next, *prev;
26 } DMPackEntry; 26 } DMPackEntry;