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
This commit is contained in:
Max Horn 2009-10-13 20:52:05 +00:00
parent 2ae08e8478
commit 429c9eb814

View File

@ -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