Skip to content

Commit

Permalink
fix backslashes in {CURRENT_DIRECTORY}
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Dec 17, 2016
1 parent f5e0d38 commit 1fd6fb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filesystem_boost.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1fd6fb3

Please sign in to comment.