1 | /* |
1 | /* |
2 | parse_driver.c - Part of psiconv, a PSION 5 file formats converter |
2 | parse_driver.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999, 2000 Frodo Looijaard <frodol@dds.nl> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
132 | psiconv_progress(lev+2,off,"Going to read the picture sections"); |
132 | psiconv_progress(lev+2,off,"Going to read the picture sections"); |
133 | (*result)->sections = psiconv_list_new(sizeof(*paint)); |
133 | (*result)->sections = psiconv_list_new(sizeof(*paint)); |
134 | for (i = 0; i < psiconv_list_length(table); i ++) { |
134 | for (i = 0; i < psiconv_list_length(table); i ++) { |
135 | entry = psiconv_list_get(table,i); |
135 | entry = psiconv_list_get(table,i); |
136 | psiconv_progress(lev+3,off,"Going to read picture section %i",i); |
136 | psiconv_progress(lev+3,off,"Going to read picture section %i",i); |
137 | psiconv_parse_paint_data_section(buf,lev+3,*entry,NULL,&paint); |
137 | psiconv_parse_paint_data_section(buf,lev+3,*entry,NULL,0,&paint); |
138 | psiconv_list_add((*result)->sections,paint); |
138 | psiconv_list_add((*result)->sections,paint); |
139 | } |
139 | } |
140 | |
140 | |
141 | psiconv_free_jumptable_section(table); |
141 | psiconv_free_jumptable_section(table); |
142 | psiconv_progress(lev+1,off,"End of mbm file"); |
142 | psiconv_progress(lev+1,off,"End of mbm file"); |