fix backslashes in {CURRENT_DIRECTORY}
This commit is contained in:
parent
f5e0d38f02
commit
1fd6fb35dd
1 changed files with 2 additions and 2 deletions
|
@ -1262,11 +1262,11 @@ std::string get_short_wml_path(const std::string &filename)
|
|||
|
||||
path partial = subtract_path(full_path, get_user_data_path() / "data");
|
||||
if (!partial.empty())
|
||||
return "~" + partial.string();
|
||||
return "~" + partial.generic_string();
|
||||
|
||||
partial = subtract_path(full_path, path(game_config::path) / "data");
|
||||
if (!partial.empty())
|
||||
return partial.string();
|
||||
return partial.generic_string();
|
||||
|
||||
return filename;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue