Some changes I still had lying around.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@791 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2003-02-20 17:03:47 +00:00
parent 9f52d1580a
commit 5c03d9199e
2 changed files with 12 additions and 4 deletions
+10 -2
View File
@@ -28,11 +28,11 @@ position length meaning
bits 21-31: index in file_list_offs of the file name for bits 21-31: index in file_list_offs of the file name for
this resource (only for packaged files) this resource (only for packaged files)
4 p.flags_and_data_loc 4 p.flags_and_data_loc
(MSB is flags, rest is data_loc, MSB is flags, rest is data_loc,
if MSB == 0, then of the data_loc only the low 16 bits if MSB == 0, then of the data_loc only the low 16 bits
are used as a MEM_HANDLE (only in memory), are used as a MEM_HANDLE (only in memory),
if MSB == 0xff, then the data_loc is an offset in the if MSB == 0xff, then the data_loc is an offset in the
file) file to the actual data
0x16+8*num_packages Type information 0x16+8*num_packages Type information
2*num_types 2*num_types
t.instance_count t.instance_count
@@ -82,6 +82,14 @@ file_list_offs (should be directly after the path list)
8 filename (8 chars or null-terminated) 8 filename (8 chars or null-terminated)
3 extension (3 chars or null-terminated) 3 extension (3 chars or null-terminated)
For each package p:
p.data_loc for each type p.t:
for each instance p.t.i:
p.t.i.length
the data for the resource
As the length always is a multiple of 4, the last
few bytes may not belong to the resource itself.
Their content is unspecified.
Resources with type 'resource index' (type 4 in the 3DO sc2 starcon.pkg file) Resources with type 'resource index' (type 4 in the 3DO sc2 starcon.pkg file)