mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-17 01:10:10 +00:00
Merge pull request #2835 from Capostrophic/logging
Address akortunov's save loading message complaints
This commit is contained in:
commit
93397e4f8f
@ -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…
Reference in New Issue
Block a user