… | |
… | |
85 | psiconv_progress(lev+2,off,"Going to read the MBM jumptable"); |
85 | psiconv_progress(lev+2,off,"Going to read the MBM jumptable"); |
86 | res |= psiconv_parse_mbm_jumptable_section(buf,lev+2, |
86 | res |= psiconv_parse_mbm_jumptable_section(buf,lev+2, |
87 | header->section_table_offset, |
87 | header->section_table_offset, |
88 | NULL,&table); |
88 | NULL,&table); |
89 | |
89 | |
|
|
90 | psiconv_progress(lev+2,off,"Going to read the picture sections"); |
90 | (*result)->sections = psiconv_list_new(sizeof(*paint)); |
91 | (*result)->sections = psiconv_list_new(sizeof(*paint)); |
91 | for (i = 0; i < psiconv_list_length(table); i ++) { |
92 | for (i = 0; i < psiconv_list_length(table); i ++) { |
92 | entry = psiconv_list_get(table,i); |
93 | entry = psiconv_list_get(table,i); |
|
|
94 | psiconv_progress(lev+3,off,"Going to read picture section %i",i); |
93 | psiconv_parse_paint_data_section(buf,lev+2,*entry,NULL,&paint); |
95 | psiconv_parse_paint_data_section(buf,lev+3,*entry,NULL,&paint); |
94 | psiconv_list_add(table,paint); |
96 | psiconv_list_add((*result)->sections,paint); |
95 | } |
97 | } |
96 | |
98 | |
97 | psiconv_free_header_section(header); |
99 | psiconv_free_header_section(header); |
98 | psiconv_free_mbm_jumptable_section(table); |
100 | psiconv_free_mbm_jumptable_section(table); |
99 | psiconv_progress(lev+1,off,"End of mbm file"); |
101 | psiconv_progress(lev+1,off,"End of mbm file"); |