From 7b4771bd9f9e4776302fb2c1b2e7fb5153e7e539 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 22 Nov 2009 13:34:58 +0000 Subject: Add mapping of TM and (C) characters in PCE version of Loom, based on information from Tobias. svn-id: r46083 --- engines/scumm/string.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'engines/scumm/string.cpp') 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++]; -- cgit v1.2.3