aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2009-10-13 20:52:05 +0000
committerMax Horn2009-10-13 20:52:05 +0000
commit429c9eb8140ef6c28cac27c3a145c971f02c540b (patch)
tree9a70271fa0dddea4b9fd243fbdc3c72d5c3afd6a
parent2ae08e8478af697fc7b8a49eeaf2879d87a67c2e (diff)
downloadscummvm-rg350-429c9eb8140ef6c28cac27c3a145c971f02c540b.tar.gz
scummvm-rg350-429c9eb8140ef6c28cac27c3a145c971f02c540b.tar.bz2
scummvm-rg350-429c9eb8140ef6c28cac27c3a145c971f02c540b.zip
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
-rw-r--r--engines/sci/detection.cpp6
1 files 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