16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 09:19:18 +02:00

add missing replace_slashes in node triangles deserializer, vehicle picker changes, explicit filesystem::path to string conversion

This commit is contained in:
milek7
2019-07-31 21:11:29 +02:00
parent ee65ca77e3
commit d95986745c
4 changed files with 41 additions and 27 deletions

View File

@@ -29,7 +29,7 @@ void ui::scenerylist_panel::render()
bool collapse_open = false;
for (auto const &desc : scenarios) {
std::string name = desc.path.stem();
std::string name = desc.path.stem().string();
std::string prefix = name.substr(0, name.find_first_of("-_"));
if (prefix.empty())
prefix = name;
@@ -120,8 +120,8 @@ void ui::scenerylist_panel::scan_scenarios()
if (*(path.filename().string().begin()) == '$')
continue;
if (string_ends_with(path, ".scn"))
scan_scn(path);
if (string_ends_with(path.string(), ".scn"))
scan_scn(path.string());
}
}