Apply character encoding conversion to hard-coded strings

This fixes an issue where menu items like "戻る" were garbled in Unicode
mode.
This commit is contained in:
kichikuou
2021-09-05 15:10:22 +09:00
parent f4799161a9
commit ccd99dab07
7 changed files with 46 additions and 48 deletions
+5 -5
View File
@@ -76,7 +76,7 @@ NACT_Sys1::NACT_Sys1(uint32 crc32_a, uint32 crc32_b, const Config& config)
case CRC32_DPS_SG3:
text_refresh = false;
for (int i = 0; i < 7; i++)
strcpy(tvar[i], strings::dps_initial_tvars[lang][i]);
strcpy(tvar[i], strings.dps_initial_tvars[i]);
break;
case CRC32_INTRUDER:
paint_x = paint_y = map_page = 0;
@@ -419,7 +419,7 @@ top2:
// 次のページを追加
ags->menu_dest_x = 2;
ags->menu_dest_y += 2;
ags->draw_text(strings::next_page[lang]);
ags->draw_text(strings.next_page);
id[index++] = -1;
ags->menu_dest_y += ags->menu_font_size + 2;
}
@@ -490,7 +490,7 @@ top:
// 戻るを追加
ags->menu_dest_x = 2;
ags->menu_dest_y += 2;
ags->draw_text(strings::back[lang]);
ags->draw_text(strings.back);
id[index++] = 0;
ags->menu_dest_y += ags->menu_font_size + 2;
} else {
@@ -516,14 +516,14 @@ top2:
// 戻るを追加
ags->menu_dest_x = 2;
ags->menu_dest_y += 2;
ags->draw_text(strings::back[lang]);
ags->draw_text(strings.back);
id[index++] = 0;
ags->menu_dest_y += ags->menu_font_size + 2;
// 次のページを追加
ags->menu_dest_x = 2;
ags->menu_dest_y += 2;
ags->draw_text(strings::next_page[lang]);
ags->draw_text(strings.next_page);
id[index++] = -1;
ags->menu_dest_y += ags->menu_font_size + 2;
}