Will now output the files.

All now left to do is interpret the various formats for the resources in
them.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@131 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2002-10-16 02:55:58 +00:00
parent 2832e02357
commit f2176c674f
2 changed files with 162 additions and 63 deletions
+6 -1
View File
@@ -19,12 +19,17 @@ typedef unsigned int uint32;
#define GET_PACKAGE(res) \
((uint16)((res) >> (TYPE_BITS + INSTANCE_BITS)) & \
((1 << PACKAGE_BITS) - 1))
#define MAKE_RESOURCE(p,t,i) \
(((uint32)(p) << (TYPE_BITS + INSTANCE_BITS)) | \
((uint32)(i) << TYPE_BITS) | \
((uint32)(t)))
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;
} packtype_desc;
typedef struct {