1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

[Windows] Fix handling X: paths.

This commit is contained in:
bruvzg
2024-08-29 15:58:59 +03:00
parent fd7239cfab
commit b130cf0361

View File

@@ -71,7 +71,9 @@ struct DirAccessWindowsPrivate {
String DirAccessWindows::fix_path(const String &p_path) const {
String r_path = DirAccess::fix_path(p_path.trim_prefix(R"(\\?\)").replace("\\", "/"));
if (r_path.ends_with(":")) {
r_path += "/";
}
if (r_path.is_relative_path()) {
r_path = current_dir.trim_prefix(R"(\\?\)").replace("\\", "/").path_join(r_path);
} else if (r_path == ".") {