mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 21:03:31 +00:00
SCUMM: (CJK) - proper display of the pause/restart dialogs
This is yet incomplete, since it requires the launcher to be configured in the exact same language as the game (e. g. launcher must be set to Japanese for Japanese FM-Towns games or the pause/restart dialog will be empty). This will be fixed in an extra commit.
This commit is contained in:
parent
debdcd6a59
commit
fb834e55fb
@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include "common/config-manager.h"
|
||||
#include "common/encoding.h"
|
||||
#include "common/savefile.h"
|
||||
#include "common/system.h"
|
||||
#include "common/events.h"
|
||||
@ -458,7 +459,16 @@ const Common::U32String InfoDialog::queryResString(int stringno) {
|
||||
tmp += chr;
|
||||
}
|
||||
}
|
||||
return _(tmp);
|
||||
|
||||
Common::String convertFromCodePage;
|
||||
if (_vm->_language == Common::KO_KOR)
|
||||
convertFromCodePage = "ks_c_5601-1987";
|
||||
else if (_vm->_language == Common::JA_JPN)
|
||||
convertFromCodePage = "shift_jis";
|
||||
else if (_vm->_language == Common::ZH_TWN || _vm->_language == Common::ZH_CNA)
|
||||
convertFromCodePage = "big5";
|
||||
|
||||
return convertFromCodePage.empty() ? _(tmp) : U32String((const Common::U32String::value_type*)Common::Encoding::convert("utf-32", convertFromCodePage, tmp));
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
Loading…
x
Reference in New Issue
Block a user