[Scummvm-git-logs] scummvm master -> 2f0d5aef05fd4309e50b125b59b0c3e1134cf7a7

dreammaster noreply at scummvm.org
Sun Nov 12 06:05:16 UTC 2023


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:
2f0d5aef05 MM: XEEN: Fix loading German resources


Commit: 2f0d5aef05fd4309e50b125b59b0c3e1134cf7a7
    https://github.com/scummvm/scummvm/commit/2f0d5aef05fd4309e50b125b59b0c3e1134cf7a7
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2023-11-11T20:04:08-10:00

Commit Message:
MM: XEEN: Fix loading German resources

Changed paths:
    engines/mm/xeen/resources.cpp


diff --git a/engines/mm/xeen/resources.cpp b/engines/mm/xeen/resources.cpp
index 9df42be8a1a..0551460945d 100644
--- a/engines/mm/xeen/resources.cpp
+++ b/engines/mm/xeen/resources.cpp
@@ -60,9 +60,19 @@ Resources::Resources() {
 }
 
 void Resources::loadData() {
-	int langId = 7; // English
-	if (g_vm->getLanguage() == Common::RU_RUS)
+	int langId;
+	switch (g_vm->getLanguage()) {
+	case Common::DE_DEU:
+		langId = 4;
+		break;
+	case Common::RU_RUS:
 		langId = 26;
+		break;
+	default:
+		// English
+		langId = 7;
+		break;
+	}
 
 	ResFile file("CONSTANTS_", _buffer, langId);
 	file.syncString(CLOUDS_CREDITS);




More information about the Scummvm-git-logs mailing list