… | |
… | |
21 | #include <stdlib.h> |
21 | #include <stdlib.h> |
22 | |
22 | |
23 | #include "parse.h" |
23 | #include "parse.h" |
24 | #include "parse_routines.h" |
24 | #include "parse_routines.h" |
25 | #include "data.h" |
25 | #include "data.h" |
|
|
26 | |
|
|
27 | int psiconv_verbosity = PSICONV_VERB_WARN; |
26 | |
28 | |
27 | psiconv_file_type_t psiconv_file_type(psiconv_buffer buf,int *length, |
29 | psiconv_file_type_t psiconv_file_type(psiconv_buffer buf,int *length, |
28 | psiconv_header_section *result) |
30 | psiconv_header_section *result) |
29 | { |
31 | { |
30 | psiconv_header_section header; |
32 | psiconv_header_section header; |
… | |
… | |
132 | psiconv_progress(lev+2,off,"Going to read the picture sections"); |
134 | psiconv_progress(lev+2,off,"Going to read the picture sections"); |
133 | (*result)->sections = psiconv_list_new(sizeof(*paint)); |
135 | (*result)->sections = psiconv_list_new(sizeof(*paint)); |
134 | for (i = 0; i < psiconv_list_length(table); i ++) { |
136 | for (i = 0; i < psiconv_list_length(table); i ++) { |
135 | entry = psiconv_list_get(table,i); |
137 | entry = psiconv_list_get(table,i); |
136 | psiconv_progress(lev+3,off,"Going to read picture section %i",i); |
138 | psiconv_progress(lev+3,off,"Going to read picture section %i",i); |
137 | psiconv_parse_paint_data_section(buf,lev+3,*entry,NULL,&paint); |
139 | psiconv_parse_paint_data_section(buf,lev+3,*entry,NULL,0,&paint); |
138 | psiconv_list_add((*result)->sections,paint); |
140 | psiconv_list_add((*result)->sections,paint); |
139 | } |
141 | } |
140 | |
142 | |
141 | psiconv_free_jumptable_section(table); |
143 | psiconv_free_jumptable_section(table); |
142 | psiconv_progress(lev+1,off,"End of mbm file"); |
144 | psiconv_progress(lev+1,off,"End of mbm file"); |