You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
more fixes
-only refuse to load an older file if version major is different, fixes #1944 -fix drive letter default value, fixes #1939
This commit is contained in:
@@ -56,6 +56,17 @@ String DirAccess::_get_root_string() const {
|
||||
return "";
|
||||
}
|
||||
|
||||
int DirAccess::get_current_drive() {
|
||||
|
||||
String path = get_current_dir().to_lower();
|
||||
for(int i=0;i<get_drive_count();i++) {
|
||||
String d = get_drive(i).to_lower();
|
||||
if (path.begins_with(d))
|
||||
return i;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static Error _erase_recursive(DirAccess *da) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user