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

Fix res:// trimmed to s:// on Windows

This commit is contained in:
Pedro J. Estébanez
2020-04-01 10:30:14 +02:00
parent f7b8d0c688
commit 741f8d9bec

View File

@@ -206,7 +206,13 @@ String DirAccessWindows::get_current_dir(bool p_include_drive) {
if (p_include_drive) {
return current_dir;
} else {
return current_dir.right(current_dir.find(":") + 1);
if (_get_root_string() == "") {
int p = current_dir.find(":");
if (p != -1) {
return current_dir.right(p + 1);
}
}
return current_dir;
}
}