Some code restructuring.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@137 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
+8
-2
@@ -24,12 +24,17 @@ typedef unsigned int uint32;
|
||||
((uint32)(i) << TYPE_BITS) | \
|
||||
((uint32)(t)))
|
||||
|
||||
typedef struct {
|
||||
uint32 size; // only low 18 bits used, multiple of 4
|
||||
uint32 offset;
|
||||
char *filename;
|
||||
} packdef_instance;
|
||||
|
||||
typedef struct {
|
||||
uint8 type;
|
||||
uint16 first_instance; // only low 13 bits used
|
||||
uint16 num_instances; // only low 11 bits used
|
||||
uint32 *sizes; // only low 18 bits used, multiple of 4
|
||||
uint32 *offsets;
|
||||
packdef_instance *instances;
|
||||
} packtype_desc;
|
||||
|
||||
typedef struct {
|
||||
@@ -48,6 +53,7 @@ typedef struct {
|
||||
uint16 file_index; // only low 11 bits used
|
||||
uint8 flags;
|
||||
uint32 data_loc; // only low 24 bits used
|
||||
char *filename;
|
||||
packtype_desc *type_list;
|
||||
} package_desc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user