diff options
Diffstat (limited to 'scumm/string.cpp')
| -rw-r--r-- | scumm/string.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp index e0b42a18c7..bb2a07ac79 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -747,10 +747,12 @@ int ScummEngine::addStringToStack(byte *dst, int dstSize, int var) { return 0; } +#ifndef DISABLE_HE void ScummEngine_v80he::initCharset(int charsetno) { ScummEngine::initCharset(charsetno); VAR(VAR_CURRENT_CHARSET) = charsetno; } +#endif void ScummEngine::initCharset(int charsetno) { int i; @@ -836,6 +838,7 @@ void ScummEngine_v6::removeBlastTexts() { _blastTextQueuePos = 0; } +#ifndef DISABLE_SCUMM_7_8 int indexCompare(const void *p1, const void *p2) { const LangIndexNode *i1 = (const LangIndexNode *) p1; const LangIndexNode *i2 = (const LangIndexNode *) p2; @@ -989,11 +992,6 @@ void ScummEngine_v7::playSpeech(const byte *ptr) { } } -void ScummEngine::translateText(const byte *text, byte *trans_buff) { - // Default: just copy the string - memcpy(trans_buff, text, resStrLen(text) + 1); -} - void ScummEngine_v7::translateText(const byte *text, byte *trans_buff) { LangIndexNode target; LangIndexNode *found = NULL; @@ -1083,4 +1081,11 @@ void ScummEngine_v7::translateText(const byte *text, byte *trans_buff) { } } +#endif + +void ScummEngine::translateText(const byte *text, byte *trans_buff) { + // Default: just copy the string + memcpy(trans_buff, text, resStrLen(text) + 1); +} + } // End of namespace Scumm |
