[Scummvm-cvs-logs] SF.net SVN: scummvm:[44077] scummvm/trunk/engines/cruise

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Sep 14 14:24:23 CEST 2009


Revision: 44077
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44077&view=rev
Author:   lordhoto
Date:     2009-09-14 12:24:23 +0000 (Mon, 14 Sep 2009)

Log Message:
-----------
Add preliminary support for German Amiga version.

Modified Paths:
--------------
    scummvm/trunk/engines/cruise/cruise.cpp
    scummvm/trunk/engines/cruise/detection.cpp
    scummvm/trunk/engines/cruise/staticres.cpp
    scummvm/trunk/engines/cruise/staticres.h

Modified: scummvm/trunk/engines/cruise/cruise.cpp
===================================================================
--- scummvm/trunk/engines/cruise/cruise.cpp	2009-09-14 12:23:17 UTC (rev 44076)
+++ scummvm/trunk/engines/cruise/cruise.cpp	2009-09-14 12:24:23 UTC (rev 44077)
@@ -87,8 +87,10 @@
 	// 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 @@
 		// 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

Modified: scummvm/trunk/engines/cruise/detection.cpp
===================================================================
--- scummvm/trunk/engines/cruise/detection.cpp	2009-09-14 12:23:17 UTC (rev 44076)
+++ scummvm/trunk/engines/cruise/detection.cpp	2009-09-14 12:24:23 UTC (rev 44077)
@@ -152,6 +152,19 @@
 	{
 		{
 			"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,

Modified: scummvm/trunk/engines/cruise/staticres.cpp
===================================================================
--- scummvm/trunk/engines/cruise/staticres.cpp	2009-09-14 12:23:17 UTC (rev 44076)
+++ scummvm/trunk/engines/cruise/staticres.cpp	2009-09-14 12:24:23 UTC (rev 44077)
@@ -317,5 +317,11 @@
 	"", 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

Modified: scummvm/trunk/engines/cruise/staticres.h
===================================================================
--- scummvm/trunk/engines/cruise/staticres.h	2009-09-14 12:23:17 UTC (rev 44076)
+++ scummvm/trunk/engines/cruise/staticres.h	2009-09-14 12:24:23 UTC (rev 44077)
@@ -59,6 +59,7 @@
 // Language strings
 extern const char *englishLanguageStrings[13];
 extern const char *frenchLanguageStrings[13];
+extern const char *germanLanguageStrings[13];
 
 } // End of namespace Cruise
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list