show the name of the save file when asking for permission to overwrite it
This commit is contained in:
parent
f7181f84d9
commit
a98982a3a8
1 changed files with 4 additions and 1 deletions
|
@ -283,8 +283,11 @@ int get_save_name(display & disp,const std::string& message, const std::string&
|
|||
}
|
||||
|
||||
if (res == 0 && save_game_exists(*fname)) {
|
||||
std::stringstream s;
|
||||
s << _("Save already exists. Do you want to overwrite it?")
|
||||
<< std::endl << _("Name: ") << *fname;
|
||||
overwrite = gui::dialog(disp,_("Overwrite?"),
|
||||
_("Save already exists. Do you want to overwrite it?"), gui::YES_NO).show();
|
||||
s.str(), gui::YES_NO).show();
|
||||
} else {
|
||||
overwrite = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue