Commit 95fb3051 authored by nanahira's avatar nanahira

fix the problem of start fail

parent 70a31e32
......@@ -1431,30 +1431,6 @@ void Game::LoadConfig() {
unsigned int lcid = 0;
#ifdef _WIN32
lcid = ((unsigned int)GetSystemDefaultLangID()) & 0xff;
#else
/* temp broken
char* locale_str = getenv("LANG");
if(locale_str) {
if(strstr(locale_str, "zh"))
lcid = 0x04;
else
if(strstr(locale_str, "en"))
lcid = 0x09;
else
if(strstr(locale_str, "es"))
lcid = 0x0a;
else
if(strstr(locale_str, "ja"))
lcid = 0x11;
else
if(strstr(locale_str, "ko"))
lcid = 0x12;
else
if(strstr(locale_str, "pt"))
lcid = 0x16;
}
*/
#endif
switch(lcid) {
case 0x04: {
myswprintf(mainGame->gameConf.locale, L"%ls", L"zh-CN");
......@@ -1481,6 +1457,30 @@ void Game::LoadConfig() {
break;
}
}
#else
/* temp broken
char* locale_str = getenv("LANG");
if(locale_str) {
if(strstr(locale_str, "zh"))
lcid = 0x04;
else
if(strstr(locale_str, "en"))
lcid = 0x09;
else
if(strstr(locale_str, "es"))
lcid = 0x0a;
else
if(strstr(locale_str, "ja"))
lcid = 0x11;
else
if(strstr(locale_str, "ko"))
lcid = 0x12;
else
if(strstr(locale_str, "pt"))
lcid = 0x16;
}
*/
#endif
#ifndef YGOPRO_COMPAT_MYCARD
SaveConfig();
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment