From 429c9eb8140ef6c28cac27c3a145c971f02c540b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 13 Oct 2009 20:52:05 +0000 Subject: SCI: Don't end warning() format strings with a newline or a period (a newline and an exclamation mark are automatically added) svn-id: r45049 --- engines/sci/detection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index eb45685ba5..8f4b3f6618 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -508,7 +508,7 @@ Common::Error SciEngine::loadGameState(int slot) { 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::Error SciEngine::saveGameState(int slot, const char *desc) { 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 -- cgit v1.2.3