summaryrefslogtreecommitdiffstats
path: root/platform/android/file_access_filesystem_jandroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/file_access_filesystem_jandroid.cpp')
-rw-r--r--platform/android/file_access_filesystem_jandroid.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/platform/android/file_access_filesystem_jandroid.cpp b/platform/android/file_access_filesystem_jandroid.cpp
index b66a201a12..f28d469d07 100644
--- a/platform/android/file_access_filesystem_jandroid.cpp
+++ b/platform/android/file_access_filesystem_jandroid.cpp
@@ -83,7 +83,7 @@ Error FileAccessFilesystemJAndroid::open_internal(const String &p_path, int p_mo
default:
return ERR_FILE_CANT_OPEN;
- case -1:
+ case -2:
return ERR_FILE_NOT_FOUND;
}
}
@@ -334,10 +334,13 @@ Error FileAccessFilesystemJAndroid::resize(int64_t p_length) {
switch (res) {
case 0:
return OK;
- case -3:
+ case -4:
return ERR_INVALID_PARAMETER;
- case -2:
+ case -3:
return ERR_FILE_CANT_OPEN;
+ case -2:
+ return ERR_FILE_NOT_FOUND;
+ case -1:
default:
return FAILED;
}