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

Fix issue causing the Android Editor port to crash when saving a scene

In addition:
- Disable 'adb devices' query (not supported when running the editor on Android devices
- Add `move_to_trash` implementation for Android devices
This commit is contained in:
Fredia Huya-Kouadio
2022-07-05 01:50:26 -07:00
parent 0cc154b120
commit 27b63247fd
5 changed files with 45 additions and 1 deletions

View File

@@ -72,7 +72,14 @@ Error FileAccessFilesystemJAndroid::_open(const String &p_path, int p_mode_flags
env->DeleteLocalRef(js);
if (res <= 0) {
return ERR_FILE_CANT_OPEN;
switch (res) {
case 0:
default:
return ERR_FILE_CANT_OPEN;
case -1:
return ERR_FILE_NOT_FOUND;
}
}
id = res;