mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-04 21:50:38 -04:00
fix path handling in linux
This commit is contained in:
parent
f9e5b3d1e9
commit
f383260a98
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,8 @@ std::filesystem::path break_and_compose_path(std::string_view pathname, char sep
|
|||
|
||||
// Vše ostatní relativně vůči current_path
|
||||
return std::filesystem::current_path() / utf8_to_path(pathname);
|
||||
} else if (p == 0) {
|
||||
return std::filesystem::current_path().root_path() / utf8_to_path(pathname);
|
||||
}
|
||||
|
||||
return break_and_compose_path(pathname.substr(0, p), sep) / utf8_to_path(pathname.substr(p + 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue