Merge pull request #2835 from Capostrophic/logging

Address akortunov's save loading message complaints
pull/578/head
Andrei Kortunov 5 years ago committed by GitHub
commit 93397e4f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -232,7 +232,7 @@ void MWState::StateManager::saveGame (const std::string& description, const Slot
// Make sure the animation state held by references is up to date before saving the game. // Make sure the animation state held by references is up to date before saving the game.
MWBase::Environment::get().getMechanicsManager()->persistAnimationStates(); MWBase::Environment::get().getMechanicsManager()->persistAnimationStates();
Log(Debug::Info) << "Writing saved game '" << description << "' for character " << profile.mPlayerName; Log(Debug::Info) << "Writing saved game '" << description << "' for character '" << profile.mPlayerName << "'";
// Write to a memory stream first. If there is an exception during the save process, we don't want to trash the // Write to a memory stream first. If there is an exception during the save process, we don't want to trash the
// existing save file we are overwriting. // existing save file we are overwriting.
@ -384,7 +384,7 @@ void MWState::StateManager::loadGame (const Character *character, const std::str
{ {
cleanup(); cleanup();
Log(Debug::Info) << "Reading saved game " << filepath; Log(Debug::Info) << "Reading save file " << boost::filesystem::path(filepath).filename().string();
ESM::ESMReader reader; ESM::ESMReader reader;
reader.open (filepath); reader.open (filepath);
@ -424,7 +424,7 @@ void MWState::StateManager::loadGame (const Character *character, const std::str
return; return;
} }
mTimePlayed = profile.mTimePlayed; mTimePlayed = profile.mTimePlayed;
Log(Debug::Info) << "Loading saved game '" << profile.mDescription << "' for character " << profile.mPlayerName; Log(Debug::Info) << "Loading saved game '" << profile.mDescription << "' for character '" << profile.mPlayerName << "'";
} }
break; break;

Loading…
Cancel
Save