forked from mirror/openmw-tes3mp
using gmst string
This commit is contained in:
parent
3816a09c6f
commit
8eb2696f6c
1 changed files with 5 additions and 3 deletions
|
@ -54,8 +54,7 @@ void MWState::StateManager::askLoadRecent()
|
||||||
|
|
||||||
if( !mAskLoadRecent )
|
if( !mAskLoadRecent )
|
||||||
{
|
{
|
||||||
if(MWBase::Environment::get().getStateManager()->getCurrentCharacter()->begin()
|
if(getCurrentCharacter()->begin() == getCurrentCharacter()->end() )//no saves
|
||||||
== MWBase::Environment::get().getStateManager()->getCurrentCharacter()->end() )//no saves
|
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getWindowManager()->pushGuiMode (MWGui::GM_MainMenu);
|
MWBase::Environment::get().getWindowManager()->pushGuiMode (MWGui::GM_MainMenu);
|
||||||
}
|
}
|
||||||
|
@ -65,7 +64,10 @@ void MWState::StateManager::askLoadRecent()
|
||||||
std::vector<std::string> buttons;
|
std::vector<std::string> buttons;
|
||||||
buttons.push_back("Yes");
|
buttons.push_back("Yes");
|
||||||
buttons.push_back("No");
|
buttons.push_back("No");
|
||||||
std::string message = "The most recent Save Game is '" + lastSave.mProfile.mDescription + "'.\n Would you like to load it?";
|
std::string tag("%s");
|
||||||
|
std::string message = MWBase::Environment::get().getWindowManager()->getGameSettingString("sLoadLastSaveMsg", tag);
|
||||||
|
size_t pos = message.find(tag);
|
||||||
|
message.replace(pos, tag.length(), lastSave.mProfile.mDescription);
|
||||||
MWBase::Environment::get().getWindowManager()->messageBox(message, buttons);
|
MWBase::Environment::get().getWindowManager()->messageBox(message, buttons);
|
||||||
mAskLoadRecent = true;
|
mAskLoadRecent = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue