[Scummvm-cvs-logs] SF.net SVN: scummvm:[50375] scummvm/trunk/engines/scumm
sev at users.sourceforge.net
sev at users.sourceforge.net
Sun Jun 27 15:06:22 CEST 2010
Revision: 50375
http://scummvm.svn.sourceforge.net/scummvm/?rev=50375&view=rev
Author: sev
Date: 2010-06-27 13:06:22 +0000 (Sun, 27 Jun 2010)
Log Message:
-----------
Add support for Chinese The DIG.
Modified Paths:
--------------
scummvm/trunk/engines/scumm/charset.cpp
scummvm/trunk/engines/scumm/detection.cpp
scummvm/trunk/engines/scumm/string.cpp
Modified: scummvm/trunk/engines/scumm/charset.cpp
===================================================================
--- scummvm/trunk/engines/scumm/charset.cpp 2010-06-27 11:51:44 UTC (rev 50374)
+++ scummvm/trunk/engines/scumm/charset.cpp 2010-06-27 13:06:22 UTC (rev 50375)
@@ -109,10 +109,9 @@
numChar = 8192;
break;
case Common::ZH_TWN:
- if (_game.id == GID_CMI) {
- fontFile = "chinese.fnt";
- numChar = 13630;
- }
+ // Both The DIG and COMI use same font
+ fontFile = "chinese.fnt";
+ numChar = 13630;
break;
case Common::ZH_CNA:
if (_game.id == GID_FT || _game.id == GID_LOOM || _game.id == GID_INDY3 ||
Modified: scummvm/trunk/engines/scumm/detection.cpp
===================================================================
--- scummvm/trunk/engines/scumm/detection.cpp 2010-06-27 11:51:44 UTC (rev 50374)
+++ scummvm/trunk/engines/scumm/detection.cpp 2010-06-27 13:06:22 UTC (rev 50375)
@@ -314,7 +314,7 @@
case 449787: // 64f3fe479d45b52902cf88145c41d172
return Common::ES_ESP;
}
- } else {
+ } else { // The DIG
switch (size) {
case 248627: // 1fd585ac849d57305878c77b2f6c74ff
return Common::DE_DEU;
@@ -328,6 +328,8 @@
return Common::ES_ESP;
case 223107: // 64f3fe479d45b52902cf88145c41d172
return Common::JA_JPN;
+ case 180730: // 424fdd60822722cdc75356d921dad9bf
+ return Common::ZH_TWN;
}
}
}
Modified: scummvm/trunk/engines/scumm/string.cpp
===================================================================
--- scummvm/trunk/engines/scumm/string.cpp 2010-06-27 11:51:44 UTC (rev 50374)
+++ scummvm/trunk/engines/scumm/string.cpp 2010-06-27 13:06:22 UTC (rev 50375)
@@ -1351,6 +1351,8 @@
// File contains Korean text (Hangul). just ignore it
} else if (*ptr == 'j') {
// File contains Japanese text. just ignore it
+ } else if (*ptr == 'c') {
+ // File contains Chinese text. just ignore it
} else if (*ptr == 'e') {
// File is encoded!
enc = 0x13;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list