[Scummvm-git-logs] scummvm master -> b1d193cc24c16d539fd045753594eece26f8c364
sev-
noreply at scummvm.org
Sat Feb 11 15:24:29 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
b1d193cc24 DIRECTOR: Added D4J sorting table
Commit: b1d193cc24c16d539fd045753594eece26f8c364
https://github.com/scummvm/scummvm/commit/b1d193cc24c16d539fd045753594eece26f8c364
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-02-11T16:24:00+01:00
Commit Message:
DIRECTOR: Added D4J sorting table
Changed paths:
engines/director/util.cpp
diff --git a/engines/director/util.cpp b/engines/director/util.cpp
index b22947156d9..4acd153c6d2 100644
--- a/engines/director/util.cpp
+++ b/engines/director/util.cpp
@@ -1176,6 +1176,38 @@ const byte orderTableD2mac[256] = {
0xf5, 0x8b, 0xa5, 0xa7, 0xa6, 0x77, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
};
+//
+// Director 4.0 Mac, MacJapanese encoding
+//
+// �...............................
+// ................................
+// ............................ !"#
+// $%&'()*+,-./0123456789:;<=>?@AaB
+// bCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqR
+// rSsTtUuVvWwXxYyZz[\]^_`{|}~.����
+// ��������������������������������
+// ������ӬÔÕ®ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½Ü¦Ý ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½ï¿½.
+
+
+const byte orderTableD4Jmac[256] = {
+ 0x3c, 0x3d, 0x3e, 0x3f, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4a, 0x4b,
+ 0x4c, 0x4d, 0x4e, 0x4f, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x5b,
+ 0x5c, 0x5d, 0x5e, 0x5f, 0x60, 0x61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ee, 0xef, 0xf0, 0xf1, 0xf2, 0xf4, 0xfb, 0xfc,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfd, 0xfe, 0xff,
+};
+
//
// Director 4.0-5.0 Win, cp1250 encoding
//
@@ -1252,6 +1284,9 @@ static int getCharOrder(Common::u32char_type_t ch) {
if (pl == Common::kPlatformMacintosh && lang != Common::JA_JPN && version < 500)
return orderTableD2mac[num];
+ if (pl == Common::kPlatformMacintosh && lang == Common::JA_JPN && version < 500)
+ return orderTableD4Jmac[num];
+
if (pl == Common::kPlatformWindows && lang != Common::JA_JPN && version < 600)
return orderTableD4win[num];
More information about the Scummvm-git-logs
mailing list