aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/tinsel.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2008-12-03 18:54:22 +0000
committerFilippos Karapetis2008-12-03 18:54:22 +0000
commitd8e656a217e149eddbf67771ad646cc3be559926 (patch)
treeee01a844e3d4d194cc51c75677f3c6043b14b002 /engines/tinsel/tinsel.cpp
parent157e0512807a77ea13376cedb97274ab3829a68f (diff)
downloadscummvm-rg350-d8e656a217e149eddbf67771ad646cc3be559926.tar.gz
scummvm-rg350-d8e656a217e149eddbf67771ad646cc3be559926.tar.bz2
scummvm-rg350-d8e656a217e149eddbf67771ad646cc3be559926.zip
- Added back the English V1 CD version of DW1 (with *.gra files)
- Added the US version of DW2 - Added placeholders for the Hebrew, Hungarian and Japanese versions of DW2 (not sure if they're correct) svn-id: r35222
Diffstat (limited to 'engines/tinsel/tinsel.cpp')
-rw-r--r--engines/tinsel/tinsel.cpp50
1 files changed, 32 insertions, 18 deletions
diff --git a/engines/tinsel/tinsel.cpp b/engines/tinsel/tinsel.cpp
index a998836d1d..f4d16b268c 100644
--- a/engines/tinsel/tinsel.cpp
+++ b/engines/tinsel/tinsel.cpp
@@ -800,26 +800,40 @@ static const GameSettings tinselSettings[] = {
{NULL, NULL, 0, 0, NULL}
};
+// For the languages, refer to the LANGUAGE enum in dw.h
+
const char *TinselEngine::_sampleIndices[][3] = {
- { "english.idx", "english1.idx", "english2.idx" },
- { "french.idx", "french1.idx", "french2.idx" },
- { "german.idx", "german1.idx", "german2.idx" },
- { "english.idx", "english1.idx", "english2.idx" }, // Italian
- { "english.idx", "english1.idx", "english2.idx" } // Spanish
+ { "english.idx", "english1.idx", "english2.idx" }, // English
+ { "french.idx", "french1.idx", "french2.idx" }, // French
+ { "german.idx", "german1.idx", "german2.idx" }, // German
+ { "english.idx", "english1.idx", "english2.idx" }, // Italian
+ { "english.idx", "english1.idx", "english2.idx" }, // Spanish
+ { "english.idx", "english1.idx", "english2.idx" }, // Hebrew (FIXME: not sure if this is correct)
+ { "english.idx", "english1.idx", "english2.idx" }, // Hungarian (FIXME: not sure if this is correct)
+ { "english.idx", "english1.idx", "english2.idx" }, // Japanese (FIXME: not sure if this is correct)
+ { "us.idx", "us1.idx", "us2.idx" } // US English
};
const char *TinselEngine::_sampleFiles[][3] = {
- { "english.smp", "english1.smp", "english2.smp" },
- { "french.smp", "french1.smp", "french2.smp" },
- { "german.smp", "german1.smp", "german2.smp" },
- { "english.smp", "english1.smp", "english2.smp" }, // Italian
- { "english.smp", "english1.smp", "english2.smp" } // Spanish,
+ { "english.smp", "english1.smp", "english2.smp" }, // English
+ { "french.smp", "french1.smp", "french2.smp" }, // French
+ { "german.smp", "german1.smp", "german2.smp" }, // German
+ { "english.smp", "english1.smp", "english2.smp" }, // Italian
+ { "english.smp", "english1.smp", "english2.smp" }, // Spanish
+ { "english.smp", "english1.smp", "english2.smp" }, // Hebrew (FIXME: not sure if this is correct)
+ { "english.smp", "english1.smp", "english2.smp" }, // Hungarian (FIXME: not sure if this is correct)
+ { "english.smp", "english1.smp", "english2.smp" }, // Japanese (FIXME: not sure if this is correct)
+ { "us.smp", "us1.smp", "us2.smp" }, // US English
};
const char *TinselEngine::_textFiles[][3] = {
- { "english.txt", "english1.txt", "english2.txt" },
- { "french.txt", "french1.txt", "french2.txt" },
- { "german.txt", "german1.txt", "german2.txt" },
- { "italian.txt", "italian1.txt", "italian2.txt" },
- { "spanish.txt", "spanish1.txt", "spanish2.txt" }
+ { "english.txt", "english1.txt", "english2.txt" }, // English
+ { "french.txt", "french1.txt", "french2.txt" }, // French
+ { "german.txt", "german1.txt", "german2.txt" }, // German
+ { "italian.txt", "italian1.txt", "italian2.txt" }, // Italian
+ { "spanish.txt", "spanish1.txt", "spanish2.txt" }, // Spanish
+ { "english.txt", "english1.txt", "english2.txt" }, // Hebrew (FIXME: not sure if this is correct)
+ { "english.txt", "english1.txt", "english2.txt" }, // Hungarian (FIXME: not sure if this is correct)
+ { "english.txt", "english1.txt", "english2.txt" }, // Japanese (FIXME: not sure if this is correct)
+ { "us.txt", "us1.txt", "us2.txt" } // US English
};
@@ -1246,7 +1260,7 @@ const char *TinselEngine::getSampleIndex(LANGUAGE lang) {
if (TinselV2) {
cd = GetCurrentCD();
assert((cd == 1) || (cd == 2));
- assert(((unsigned int) lang) < 5);
+ assert(((unsigned int) lang) < NUM_LANGUAGES);
} else {
cd = 0;
lang = TXT_ENGLISH;
@@ -1261,7 +1275,7 @@ const char *TinselEngine::getSampleFile(LANGUAGE lang) {
if (TinselV2) {
cd = GetCurrentCD();
assert((cd == 1) || (cd == 2));
- assert(((unsigned int) lang) < 5);
+ assert(((unsigned int) lang) < NUM_LANGUAGES);
} else {
cd = 0;
lang = TXT_ENGLISH;
@@ -1271,7 +1285,7 @@ const char *TinselEngine::getSampleFile(LANGUAGE lang) {
}
const char *TinselEngine::getTextFile(LANGUAGE lang) {
- assert(((unsigned int) lang) < 5);
+ assert(((unsigned int) lang) < NUM_LANGUAGES);
int cd;