mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-05 05:17:58 +03:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user