mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 11:12:04 +00:00
Wrap some directory composition in get_dir
This commit is contained in:
parent
a29ba939b7
commit
409744c449
@ -562,7 +562,7 @@ void context_manager::save_map_as_dialog()
|
|||||||
{
|
{
|
||||||
std::string input_name = get_map_context().get_filename();
|
std::string input_name = get_map_context().get_filename();
|
||||||
if (input_name.empty()) {
|
if (input_name.empty()) {
|
||||||
input_name = default_dir_ + "/maps";
|
input_name = get_dir(default_dir_ + "/maps");
|
||||||
}
|
}
|
||||||
const std::string old_input_name = input_name;
|
const std::string old_input_name = input_name;
|
||||||
|
|
||||||
@ -590,7 +590,7 @@ void context_manager::save_scenario_as_dialog()
|
|||||||
{
|
{
|
||||||
std::string input_name = get_map_context().get_filename();
|
std::string input_name = get_map_context().get_filename();
|
||||||
if (input_name.empty()) {
|
if (input_name.empty()) {
|
||||||
input_name = default_dir_ + "/scenarios";
|
input_name = get_dir(default_dir_ + "/scenarios");
|
||||||
}
|
}
|
||||||
const std::string old_input_name = input_name;
|
const std::string old_input_name = input_name;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user