[Scummvm-cvs-logs] SF.net SVN: scummvm: [30854] scummvm/trunk/engines/agi/detection.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Tue Feb 12 16:31:09 CET 2008


Revision: 30854
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30854&view=rev
Author:   buddha_
Date:     2008-02-12 07:31:09 -0800 (Tue, 12 Feb 2008)

Log Message:
-----------
Tiny fix to autodetected game's naming (Removes an extra space).

Modified Paths:
--------------
    scummvm/trunk/engines/agi/detection.cpp

Modified: scummvm/trunk/engines/agi/detection.cpp
===================================================================
--- scummvm/trunk/engines/agi/detection.cpp	2008-02-12 15:24:30 UTC (rev 30853)
+++ scummvm/trunk/engines/agi/detection.cpp	2008-02-12 15:31:09 UTC (rev 30854)
@@ -2225,7 +2225,7 @@
 	// Check if we found a match with any of the fallback methods
 	Common::EncapsulatedADGameDesc result;
 	if (matchedUsingWag || matchedUsingFilenames) {
-		extra = description + " " + extra; // Let's combine the description and extra
+		extra = description + (!extra.empty() ? " " : "") + extra; // Let's combine the description and extra
 		result = Common::EncapsulatedADGameDesc((const Common::ADGameDescription *)&g_fallbackDesc, gameid, extra);
 
 		printf("Your game version has been detected using fallback matching as a\n");


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