--- psiconv/trunk/lib/psiconv/parse_common.c 1999/10/03 21:10:47 2 +++ psiconv/trunk/lib/psiconv/parse_common.c 1999/10/29 21:14:58 24 @@ -18,6 +18,7 @@ */ #include "config.h" +#include "compat.h" #include #include @@ -67,8 +68,16 @@ } else if ((*result)->uid3 == PSICONV_ID_TEXTED) { (*result)->file = psiconv_texted_file; psiconv_debug(lev+2,off+len,"File is a TextEd file"); - } - } + } else if ((*result)->uid3 == PSICONV_ID_SKETCH) { + (*result)->file = psiconv_sketch_file; + psiconv_debug(lev+2,off+len,"File is a Sketch file"); + } + } else if ((*result)->uid2 == PSICONV_ID_MBM_FILE) { + (*result)->file = psiconv_mbm_file; + if ((*result)->uid3 != 0x00) + psiconv_warn(lev+2,off+len,"UID3 set in MBM file?!?"); + psiconv_debug(lev+2,off+len,"File is a MBM file"); + } } if ((*result)->file == psiconv_unknown_file) { psiconv_warn(lev+2,off+len,"Unknown file type"); @@ -89,12 +98,6 @@ } len += 4; - psiconv_progress(lev+2,off+len,"Going to read Section Table Section offset"); - (*result)->section_table_offset = psiconv_read_u32(buf,lev+2,off+len); - psiconv_debug(lev+2,off+len,"Section Table Section starts at offset %08x", - (*result)->section_table_offset) ; - len += 4; - if (length) *length = len;