Fixed a missing Chinese font bug. In the patch r2145 which introduced Chinese support, options[Options::LANG] is tested to determine which language wagic is using, while on some PSP2000 system the value would be upper case so that the code will lost itself with 'CN' option and no words will be displayed.
This commit is contained in:
@@ -145,6 +145,7 @@ void Translator::init() {
|
||||
|
||||
if (fileExists(name.c_str())){
|
||||
// fixup for Chinese language support.
|
||||
std::transform(lang.begin(), lang.end(), lang.begin(), ::tolower);
|
||||
if (lang.compare("cn") == 0)
|
||||
neofont = true;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user