1
0
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:
Juan Linietsky
2015-05-19 21:36:35 -03:00
parent f220183e40
commit 221443c5a2
14 changed files with 55 additions and 12 deletions

View File

@@ -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) {