… | |
… | |
16 | along with this program; if not, write to the Free Software |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 | */ |
18 | */ |
19 | |
19 | |
20 | #include "config.h" |
20 | #include "config.h" |
|
|
21 | #include "compat.h" |
21 | #include <stdlib.h> |
22 | #include <stdlib.h> |
22 | #include <string.h> |
23 | #include <string.h> |
23 | |
24 | |
24 | #include "data.h" |
25 | #include "data.h" |
25 | #include "parse_routines.h" |
26 | #include "parse_routines.h" |
… | |
… | |
92 | (*result)->uid3),temp); |
93 | (*result)->uid3),temp); |
93 | res = -1; |
94 | res = -1; |
94 | } |
95 | } |
95 | len += 4; |
96 | len += 4; |
96 | |
97 | |
97 | psiconv_progress(lev+2,off+len,"Going to read Section Table Section offset"); |
|
|
98 | (*result)->section_table_offset = psiconv_read_u32(buf,lev+2,off+len); |
|
|
99 | psiconv_debug(lev+2,off+len,"Section Table Section starts at offset %08x", |
|
|
100 | (*result)->section_table_offset) ; |
|
|
101 | len += 4; |
|
|
102 | |
|
|
103 | if (length) |
98 | if (length) |
104 | *length = len; |
99 | *length = len; |
105 | |
100 | |
106 | psiconv_progress(lev+1,off+len-1, |
101 | psiconv_progress(lev+1,off+len-1, |
107 | "End of Header Section (total length: %08x)",len); |
102 | "End of Header Section (total length: %08x)",len); |