You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Fix the String::get_base_dir() logic to properly check for top level directories on Windows.
This commit is contained in:
@@ -4285,7 +4285,10 @@ bool String::is_rel_path() const {
|
||||
}
|
||||
|
||||
String String::get_base_dir() const {
|
||||
int basepos = find("://");
|
||||
int basepos = find(":/");
|
||||
if (basepos == -1) {
|
||||
basepos = find(":\\");
|
||||
}
|
||||
String rs;
|
||||
String base;
|
||||
if (basepos != -1) {
|
||||
|
||||
Reference in New Issue
Block a user