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

bluegr noreply at scummvm.org
Sun Apr 17 11:22:15 UTC 2022


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:
e79f0a5c81 AGI: *.wag fallback - use description and version only if not empty strings


Commit: e79f0a5c811d287a99355252e182ef39adf0dc7b
    https://github.com/scummvm/scummvm/commit/e79f0a5c811d287a99355252e182ef39adf0dc7b
Author: Zvika Haramaty (haramaty.zvika at gmail.com)
Date: 2022-04-17T14:22:12+03:00

Commit Message:
AGI: *.wag fallback - use description and version only if not empty strings

Changed paths:
    engines/agi/detection.cpp


diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp
index 1c212612c11..1e4053b4d0a 100644
--- a/engines/agi/detection.cpp
+++ b/engines/agi/detection.cpp
@@ -282,12 +282,12 @@ ADDetectedGame AgiMetaEngineDetection::fallbackDetect(const FileMap &allFilesXXX
 		}
 
 		// Set game description and extra according to *.wag file information if they're present
-		if (wagGameDesc != nullptr) {
+		if (wagGameDesc != nullptr && Common::String(wagGameDesc->getData()) != "\"\"") {
 			description = wagGameDesc->getData();
 			debug(3, "Agi::fallbackDetector: Game description (%s) from WAG file", wagGameDesc->getData());
 
 			// If there's game version in the *.wag file, set extra to it
-			if (wagGameVer != nullptr) {
+			if (wagGameVer != nullptr && Common::String(wagGameVer->getData()) != "\"\"") {
 				_extra = wagGameVer->getData();
 				debug(3, "Agi::fallbackDetector: Game version (%s) from WAG file", wagGameVer->getData());
 			}




More information about the Scummvm-git-logs mailing list