[Scummvm-git-logs] scummvm master -> 5cf6df17af118179820cafd3552ebd737875b2ba

AndywinXp noreply at scummvm.org
Wed Apr 3 09:39:54 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5cf6df17af SWORD1: DETECTION: Add support for several versions of the Polish fan translation


Commit: 5cf6df17af118179820cafd3552ebd737875b2ba
    https://github.com/scummvm/scummvm/commit/5cf6df17af118179820cafd3552ebd737875b2ba
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-04-03T11:39:34+02:00

Commit Message:
SWORD1: DETECTION: Add support for several versions of the Polish fan translation

At least, the ones I could find...

Changed paths:
    engines/sword1/control.cpp
    engines/sword1/control.h
    engines/sword1/detection_tables.h


diff --git a/engines/sword1/control.cpp b/engines/sword1/control.cpp
index 8c93a729912..3d727d29021 100644
--- a/engines/sword1/control.cpp
+++ b/engines/sword1/control.cpp
@@ -189,6 +189,8 @@ Control::Control(SwordEngine *vm, Common::SaveFileManager *saveFileMan, ResMan *
 		_lStrings = _akellaLanguageStrings;
 	} else if (gameVersionIsMediaHouse()) {
 		_lStrings = _mediaHouseLanguageStrings;
+	} else if (vm->_systemVars.realLanguage == Common::Language::PL_POL) {
+		_lStrings = _polishTranslationLanguageStrings;
 	} else {
 		_lStrings = loadCustomStrings("strings.txt") ? _customStrings : _languageStrings + SwordEngine::_systemVars.language * 20;
 	}
@@ -3326,6 +3328,29 @@ const uint8 Control::_mediaHouseLanguageStrings[20][43] = {
 	"DRIVE FULL!",
 };
 
+const uint8 Control::_polishTranslationLanguageStrings[20][43] = {
+	"GRA ZATRZYMANA",                              // "PAUSED",
+	"PROSZ\xCA W\xA3O\xAFY\xC6 P\xA3YT\xCA CD-",   // "PLEASE INSERT CD-",
+	"I NACISN\xA1\xC6 DOWOLNY KLAWISZ",            // "THEN PRESS A KEY",
+	"NIEPRAWID\xA3OWA P\xA3YTA CD",                // "INCORRECT CD",
+	"Zapisz",                                      // "Save",
+	"Wczytaj",                                     // "Restore",
+	"Nowa gra",                                    // "Restart",
+	"Start",                                       // "Start",
+	"Wyjd\xBC",                                    // "Quit",
+	"Pr\xEA""dko\xB6\xE6",                         // "Speed", the double pair of "" is to avoid escaping the d after \xEA
+	"G\xB3o\xB6no\xB6\xE6",                        // "Volume",
+	"Napisy",                                      // "Text",
+	"Gotowe",                                      // "Done",
+	"OK",                                          // "OK",
+	"Anuluj",                                      // "Cancel",
+	"Muzyka",                                      // "Music",
+	"Mowa",	                                       // "Speech",
+	"Efekty",                                      // "Fx",
+	"Koniec",                                      // "The End",
+	"DYSK PE\xA3NY!"                               // "DRIVE FULL!"
+};
+
 /* ---------- PSX CREDITS CODE ---------- */
 
 int32 Control::getCreditsStringLength(uint8 *str, uint8 *font) {
diff --git a/engines/sword1/control.h b/engines/sword1/control.h
index 4521c5466fb..be305e22363 100644
--- a/engines/sword1/control.h
+++ b/engines/sword1/control.h
@@ -214,6 +214,7 @@ private:
 	static const uint8 _languageStrings[8 * 20][43];
 	static const uint8 _akellaLanguageStrings[20][43];
 	static const uint8 _mediaHouseLanguageStrings[20][43];
+	static const uint8 _polishTranslationLanguageStrings[20][43];
 	uint8 _customStrings[20][43];
 	const uint8(*_lStrings)[43];
 	const uint8 _psxPauseStrings[3][7] = { "Paused", "Pause", "Pausa" };
diff --git a/engines/sword1/detection_tables.h b/engines/sword1/detection_tables.h
index c5ae43dab55..5a666d5bc5d 100644
--- a/engines/sword1/detection_tables.h
+++ b/engines/sword1/detection_tables.h
@@ -438,6 +438,45 @@ static const ADGameDescription gameDescriptions[] = {
 		GUIO0()
 	},
 
+	{
+		"sword1",
+		"English speech",
+		AD_ENTRY4s("clusters/scripts.clu",  "72b10193714e8c6e4daca51791c0db0c", 1087240,
+				   "clusters/swordres.rif", "7188a3ec8d486fd9179f06968369c011", 58916,
+				   "clusters/text.clu",     "b9e7b3e342569be68738e4681f2adeff", 2675700,
+				   "smackshi/intro.smk",    "d82a7869ace8fcecaa519c04c4bfc483", 13233268),
+		Common::PL_POL,
+		Common::kPlatformWindows,
+		ADGF_NO_FLAGS,
+		GUIO0()
+	},
+
+	{
+		"sword1",
+		"English speech",
+		AD_ENTRY4s("clusters/scripts.clu",  "72b10193714e8c6e4daca51791c0db0c", 1087240,
+				   "clusters/swordres.rif", "31ea11161d5d2200b6b44a833b7d5aa8", 58916,
+				   "clusters/text.clu",     "7d9e47533fde5333dc310bfd73eaeb5c", 2666334,
+				   "smackshi/intro.smk",    "d82a7869ace8fcecaa519c04c4bfc483", 13233268),
+		Common::PL_POL,
+		Common::kPlatformWindows,
+		ADGF_NO_FLAGS,
+		GUIO0()
+	},
+
+	{
+		"sword1",
+		"English speech",
+		AD_ENTRY4s("clusters/scripts.clu",  "72b10193714e8c6e4daca51791c0db0c", 1088372,
+				   "clusters/swordres.rif", "04a41fc5783d18a8958d41aa9a3823af", 59788,
+				   "clusters/text.clu",     "b9e7b3e342569be68738e4681f2adeff", 3164267,
+				   "smackshi/intro.smk",    "d82a7869ace8fcecaa519c04c4bfc483", 13233268),
+		Common::PL_POL,
+		Common::kPlatformWindows,
+		ADGF_NO_FLAGS,
+		GUIO0()
+	},
+
 	{
 		"sword1",
 		"English speech",




More information about the Scummvm-git-logs mailing list