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

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Oct 13 22:52:05 CEST 2009


Revision: 45049
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45049&view=rev
Author:   fingolfin
Date:     2009-10-13 20:52:05 +0000 (Tue, 13 Oct 2009)

Log Message:
-----------
SCI: Don't end warning() format strings with a newline or a period (a newline and an exclamation mark are automatically added)

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

Modified: scummvm/trunk/engines/sci/detection.cpp
===================================================================
--- scummvm/trunk/engines/sci/detection.cpp	2009-10-13 20:50:59 UTC (rev 45048)
+++ scummvm/trunk/engines/sci/detection.cpp	2009-10-13 20:52:05 UTC (rev 45049)
@@ -508,7 +508,7 @@
 		shrink_execution_stack(_gamestate, _gamestate->execution_stack_base + 1);
 		return Common::kNoError;
 	} else {
-		warning("Restoring gamestate '%s' failed.\n", fileName.c_str());
+		warning("Restoring gamestate '%s' failed", fileName.c_str());
 		return Common::kUnknownError;
 	}
 }
@@ -521,12 +521,12 @@
 	Common::OutSaveFile *out = saveFileMan->openForSaving(fileName);
 	const char *version = "";
 	if (!out) {
-		warning("Error opening savegame \"%s\" for writing\n", fileName);
+		warning("Opening savegame \"%s\" for writing failed", fileName);
 		return Common::kWritingFailed;
 	}
 
 	if (gamestate_save(_gamestate, out, desc, version)) {
-		warning("Saving the game state to '%s' failed\n", fileName);
+		warning("Saving the game state to '%s' failed", fileName);
 		return Common::kUnknownError;
 	}
 #endif


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