From 4c4310ac1efb2223569e0294f8150bd7ed65153e Mon Sep 17 00:00:00 2001 From: linshier Date: Sun, 15 Aug 2010 11:50:46 +0000 Subject: [PATCH] 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. --- projects/mtg/src/Translate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/mtg/src/Translate.cpp b/projects/mtg/src/Translate.cpp index e590a04c5..b109db187 100644 --- a/projects/mtg/src/Translate.cpp +++ b/projects/mtg/src/Translate.cpp @@ -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