summaryrefslogtreecommitdiffstats
path: root/platform/android/file_access_filesystem_jandroid.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-22 22:25:53 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-22 22:25:53 +0200
commit4eb0ceab351804b44c0eb9669a2173f37f7210ff (patch)
tree2b376da7f73ae800ef0460b922e42c2c56052447 /platform/android/file_access_filesystem_jandroid.cpp
parentb7bc667fe1e1419ea662e355bda0aff1f7ecf010 (diff)
parent3a06b447cc63934108834749ee0da669c717e1fc (diff)
downloadredot-engine-4eb0ceab351804b44c0eb9669a2173f37f7210ff.tar.gz
Merge pull request #91017 from m4gr3d/cleanup_android_file_errors
Cleanup Android file errors
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;
}