From 164e5f3798d5aa5f839d2a13787801d0610da984 Mon Sep 17 00:00:00 2001 From: meep-eep Date: Wed, 25 Feb 2004 17:11:49 +0000 Subject: [PATCH] little clarification git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1332 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/doc/devel/pkgformat | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sc2/doc/devel/pkgformat b/sc2/doc/devel/pkgformat index 50df1297b..257fdd848 100644 --- a/sc2/doc/devel/pkgformat +++ b/sc2/doc/devel/pkgformat @@ -1,6 +1,10 @@ The .pkg/.ndx format as used for Starcon.pkg on the 3DO cd. Acquired directly from the source. +This format is used both in the file and is memory. There are some +little differences; where this is this is the case, this is +mentioned below in square brackets. + Everything is stored LSB first. Main header: (resinit.c, _GetResFileData()) @@ -30,7 +34,7 @@ position length meaning 4 p.flags_and_data_loc MSB is flags, rest is data_loc, 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 file to the actual data 0x16+8*num_packages Type information @@ -64,8 +68,8 @@ packmem_list_offs (should be directly after the index info): 2 if this is a packaged file: multiply by 4 to get the length of this package. if this is a file that is not packaged: - (the same position is in memory used as a - MEM_HANDLE to the actual data) + [the same position is in memory used as a + MEM_HANDLE to the actual data] path_list_offs (should be directly after the packmem list) ? null terminated path strings, indexed from the file list table