diff options
author | Travis Howell | 2009-11-22 13:34:58 +0000 |
---|---|---|
committer | Travis Howell | 2009-11-22 13:34:58 +0000 |
commit | 7b4771bd9f9e4776302fb2c1b2e7fb5153e7e539 (patch) | |
tree | 02f357bd1ca3ac4134dfc44624965527c0988f6b /engines | |
parent | 40504d781032581d0a37d0d996909e5f7084dae9 (diff) | |
download | scummvm-rg350-7b4771bd9f9e4776302fb2c1b2e7fb5153e7e539.tar.gz scummvm-rg350-7b4771bd9f9e4776302fb2c1b2e7fb5153e7e539.tar.bz2 scummvm-rg350-7b4771bd9f9e4776302fb2c1b2e7fb5153e7e539.zip |
Add mapping of TM and (C) characters in PCE version of Loom, based on information from Tobias.
svn-id: r46083
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/string.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/scumm/string.cpp b/engines/scumm/string.cpp index 8d380511bd..a29d36e765 100644 --- a/engines/scumm/string.cpp +++ b/engines/scumm/string.cpp @@ -1031,6 +1031,21 @@ int ScummEngine::convertMessageToString(const byte *msg, byte *dst, int dstSize) chr = src[num++]; if (chr == 0) break; + + if (_game.id == GID_LOOM && _game.platform == Common::kPlatformPCEngine) { + // Code for TM character + if (chr == 0x0F && src[num] == 0x20) { + *dst++ = 0x5D; + *dst++ = 0x5E; + continue; + // Code for (C) character + } else if (chr == 0x1C && src[num] == 0x20) { + *dst++ = 0x3E; + *dst++ = 0x2A; + continue; + } + } + if (chr == 0xFF) { chr = src[num++]; |