2020/08/18: Inchar - 汉化区域显示

This commit is contained in:
Rintim 2020-08-18 19:30:57 +08:00
parent bc0beebdbe
commit dd07b06783

View File

@ -9,13 +9,13 @@
#define SMDH_ALL_REGIONS 0x7F
static const char* smdh_region_strings[SMDH_NUM_REGIONS] = {
"Japan",
"North America",
"Europe",
"Australia",
"China",
"Korea",
"Taiwan"
"日本",
"北美洲",
"歐洲",
"澳大利亞",
"中國",
"韓國",
"中國臺灣"
};
void smdh_region_to_string(char* out, u32 region, size_t size) {
@ -24,9 +24,9 @@ void smdh_region_to_string(char* out, u32 region, size_t size) {
}
if(region == 0) {
snprintf(out, size, "Unknown");
snprintf(out, size, "未知");
} else if((region & SMDH_ALL_REGIONS) == SMDH_ALL_REGIONS) {
snprintf(out, size, "Region Free");
snprintf(out, size, "全區");
} else {
size_t pos = 0;
@ -70,4 +70,6 @@ SMDH_title* smdh_select_title(SMDH* smdh) {
}
return &smdh->titles[systemLanguage];
}
}
// オケー