… | |
… | |
117 | goto ERROR6; |
117 | goto ERROR6; |
118 | |
118 | |
119 | |
119 | |
120 | entry->id = PSICONV_ID_APPL_ID_SECTION; |
120 | entry->id = PSICONV_ID_APPL_ID_SECTION; |
121 | entry->offset = psiconv_list_length(extra_buf) + 0x14; |
121 | entry->offset = psiconv_list_length(extra_buf) + 0x14; |
122 | if ((res = psiconv_list_add(section_table,&entry))) |
122 | if ((res = psiconv_list_add(section_table,entry))) |
123 | goto ERROR6; |
123 | goto ERROR6; |
124 | if ((res=psiconv_write_application_id_section(extra_buf, |
124 | if ((res=psiconv_write_application_id_section(extra_buf, |
125 | PSICONV_ID_TEXTED,"TextEd.app"))) |
125 | PSICONV_ID_TEXTED,"TextEd.app"))) |
126 | goto ERROR6; |
126 | goto ERROR6; |
127 | |
127 | |
128 | entry->id = PSICONV_ID_PAGE_LAYOUT_SECTION; |
128 | entry->id = PSICONV_ID_PAGE_LAYOUT_SECTION; |
129 | entry->offset = psiconv_list_length(extra_buf) + 0x14; |
129 | entry->offset = psiconv_list_length(extra_buf) + 0x14; |
130 | if ((res = psiconv_list_add(section_table,&entry))) |
130 | if ((res = psiconv_list_add(section_table,entry))) |
131 | goto ERROR6; |
131 | goto ERROR6; |
132 | if ((res = psiconv_write_page_layout_section(extra_buf,value->page_sec))) |
132 | if ((res = psiconv_write_page_layout_section(extra_buf,value->page_sec))) |
133 | goto ERROR6; |
133 | goto ERROR6; |
134 | |
134 | |
135 | entry->id = PSICONV_ID_TEXTED; |
135 | entry->id = PSICONV_ID_TEXTED; |
136 | entry->offset = psiconv_list_length(extra_buf) + 0x14; |
136 | entry->offset = psiconv_list_length(extra_buf) + 0x14; |
137 | if ((res = psiconv_list_add(section_table,&entry))) |
137 | if ((res = psiconv_list_add(section_table,entry))) |
138 | goto ERROR6; |
138 | goto ERROR6; |
139 | if ((res = psiconv_write_texted_section(extra_buf,value->texted_sec, |
139 | if ((res = psiconv_write_texted_section(extra_buf,value->texted_sec, |
140 | base_char,base_para))) |
140 | base_char,base_para))) |
141 | goto ERROR6; |
141 | goto ERROR6; |
142 | |
142 | |