[Scummvm-git-logs] scummvm master -> b5e56e9230da9783526718707afdf13dae828c61

bluegr bluegr at gmail.com
Tue Aug 10 19:39:14 UTC 2021


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:
b5e56e9230 SCUMM: Add italian translation for MI1 Cannibal script patch


Commit: b5e56e9230da9783526718707afdf13dae828c61
    https://github.com/scummvm/scummvm/commit/b5e56e9230da9783526718707afdf13dae828c61
Author: Andrea Boscarino (andywinxp at gmail.com)
Date: 2021-08-10T22:39:11+03:00

Commit Message:
SCUMM: Add italian translation for MI1 Cannibal script patch

Changed paths:
    engines/scumm/resource.cpp
    engines/scumm/script_v5.cpp


diff --git a/engines/scumm/resource.cpp b/engines/scumm/resource.cpp
index 5315b0981b..3c1b23b60a 100644
--- a/engines/scumm/resource.cpp
+++ b/engines/scumm/resource.cpp
@@ -1841,6 +1841,17 @@ bool ScummEngine::tryPatchMI1CannibalScript(byte *buf, int size) {
 		lang[1] = 'N';
 		lang[2] = 'G';
 		break;
+	case Common::IT_ITA:
+		expectedSize = 83211;
+		scriptOffset = 73998;
+		scriptLength = 602;
+		expectedMd5 = "39eb6116d67f2318f31d6fa98df2e931";
+		patchOffset = 161;
+		patchLength = 20;
+		lang[0] = 'I';
+		lang[1] = 'T';
+		lang[2] = 'A';
+		break;
 	default:
 		return false;
 	}
diff --git a/engines/scumm/script_v5.cpp b/engines/scumm/script_v5.cpp
index 945de94888..5cb5bb6b6f 100644
--- a/engines/scumm/script_v5.cpp
+++ b/engines/scumm/script_v5.cpp
@@ -2872,9 +2872,14 @@ void ScummEngine_v5::printPatchedMI1CannibalString(int textSlot, const byte *ptr
 
 	if (strncmp((const char *)ptr, "/LH.ENG/", 8) == 0) {
 		msg =
-"Oooh, that's nice.\xFF\x03"
-"Simple.  Just like one of mine.\xFF\x03"
-"And little.  Like mine.";
+			"Oooh, that's nice.\xFF\x03"
+			"Simple.  Just like one of mine.\xFF\x03"
+			"And little.  Like mine.";
+	} else if (strncmp((const char *)ptr, "/LH.ITA/", 8) == 0) {
+		msg =
+			"Oooh, che bello.\xFF\x03"
+			"Semplice.  Proprio come uno dei miei.\xFF\x03"
+			"E piccolo.  Come il mio.";
 	}
 
 	printString(textSlot, (const byte *)msg);




More information about the Scummvm-git-logs mailing list