aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise
diff options
context:
space:
mode:
authorJohannes Schickel2009-09-14 12:24:23 +0000
committerJohannes Schickel2009-09-14 12:24:23 +0000
commit346ce3f3da2e730d865f27ac9f456e9a3a833831 (patch)
treeb8b7151e1e654aa8f34a176f642fe9af9482d37b /engines/cruise
parentcfc82d660a7cfcd1d5c7d13c478045d674cf433a (diff)
downloadscummvm-rg350-346ce3f3da2e730d865f27ac9f456e9a3a833831.tar.gz
scummvm-rg350-346ce3f3da2e730d865f27ac9f456e9a3a833831.tar.bz2
scummvm-rg350-346ce3f3da2e730d865f27ac9f456e9a3a833831.zip
Add preliminary support for German Amiga version.
svn-id: r44077
Diffstat (limited to 'engines/cruise')
-rw-r--r--engines/cruise/cruise.cpp23
-rw-r--r--engines/cruise/detection.cpp13
-rw-r--r--engines/cruise/staticres.cpp6
-rw-r--r--engines/cruise/staticres.h1
4 files changed, 34 insertions, 9 deletions
diff --git a/engines/cruise/cruise.cpp b/engines/cruise/cruise.cpp
index c4b2cd53fe..adfe3f102d 100644
--- a/engines/cruise/cruise.cpp
+++ b/engines/cruise/cruise.cpp
@@ -87,8 +87,10 @@ Common::Error CruiseEngine::run() {
// Initialize backend
initGraphics(320, 200, false);
- if (!loadLanguageStrings())
+ if (!loadLanguageStrings()) {
+ error("Could not setup language data for your version");
return Common::kUnknownError;
+ }
initialize();
@@ -167,14 +169,17 @@ bool CruiseEngine::loadLanguageStrings() {
// Try and use one of the pre-defined language lists
const char **p = NULL;
switch (getLanguage()) {
- case Common::EN_ANY:
- p = englishLanguageStrings;
- break;
- case Common::FR_FRA:
- p = frenchLanguageStrings;
- break;
- default:
- return false;
+ case Common::EN_ANY:
+ p = englishLanguageStrings;
+ break;
+ case Common::FR_FRA:
+ p = frenchLanguageStrings;
+ break;
+ case Common::DE_DEU:
+ p = germanLanguageStrings;
+ break;
+ default:
+ return false;
}
// Load in the located language set
diff --git a/engines/cruise/detection.cpp b/engines/cruise/detection.cpp
index 054550e439..d6095092ac 100644
--- a/engines/cruise/detection.cpp
+++ b/engines/cruise/detection.cpp
@@ -152,6 +152,19 @@ static const CRUISEGameDescription gameDescriptions[] = {
{
{
"cruise",
+ 0,
+ AD_ENTRY1("D1", "70f42a21cc257b01d58667853335f4f1"),
+ Common::DE_DEU,
+ Common::kPlatformAmiga,
+ ADGF_NO_FLAGS,
+ GUIO_NONE
+ },
+ GType_CRUISE,
+ 0,
+ },
+ {
+ {
+ "cruise",
"256 colors",
AD_ENTRY1("D1", "e19a4ab2e24a69087e4ea994a5506231"),
Common::IT_ITA,
diff --git a/engines/cruise/staticres.cpp b/engines/cruise/staticres.cpp
index 1ffdc5628a..101a2038b0 100644
--- a/engines/cruise/staticres.cpp
+++ b/engines/cruise/staticres.cpp
@@ -317,5 +317,11 @@ const char *frenchLanguageStrings[13] = {
"", NULL, NULL, NULL, NULL, "Inventaire", "Parler de...", "Menu Joueur", NULL,
"Sauvegarde", "Chargement", "Recommencer le jeu", "Quitter"
};
+// The original Amiga version does use "Speilermen\xFC" instead of "Spielermen\xFC", if we want to correct
+// this typo, we can easily do so.
+const char *germanLanguageStrings[13] = {
+ " ", NULL, NULL, NULL, NULL, "Inventar", "Sprechen ""\xFC""ber", "Speilermen\xFC", "Speicherlaufwerk",
+ "Speichern", "Laden", "Neu beginnen", "Ende"
+};
} // End of namespace Cruise
diff --git a/engines/cruise/staticres.h b/engines/cruise/staticres.h
index f17e435acd..af37b14f5e 100644
--- a/engines/cruise/staticres.h
+++ b/engines/cruise/staticres.h
@@ -59,6 +59,7 @@ extern const byte mouseCursorMagnifyingGlass[];
// Language strings
extern const char *englishLanguageStrings[13];
extern const char *frenchLanguageStrings[13];
+extern const char *germanLanguageStrings[13];
} // End of namespace Cruise