diff options
| author | Juan Linietsky | 2015-09-03 23:24:55 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-09-03 23:24:55 -0300 |
| commit | b0aa49accbd7e45dae38f1bd43b0fbdd11714211 (patch) | |
| tree | f9173780301097b0da9bba0203402c33036ea72d /platform/android/file_access_jandroid.cpp | |
| parent | 7900d5daf21434a9396894a7c3ac360c03938770 (diff) | |
| download | godot-b0aa49accbd7e45dae38f1bd43b0fbdd11714211.tar.gz godot-b0aa49accbd7e45dae38f1bd43b0fbdd11714211.tar.zst godot-b0aa49accbd7e45dae38f1bd43b0fbdd11714211.zip | |
Diffstat (limited to 'platform/android/file_access_jandroid.cpp')
| -rw-r--r-- | platform/android/file_access_jandroid.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/android/file_access_jandroid.cpp b/platform/android/file_access_jandroid.cpp index 971d4f84a..be38d806b 100644 --- a/platform/android/file_access_jandroid.cpp +++ b/platform/android/file_access_jandroid.cpp @@ -62,13 +62,15 @@ Error FileAccessJAndroid::_open(const String& p_path, int p_mode_flags) { JNIEnv *env = ThreadAndroid::get_env(); - //OS::get_singleton()->print("env: %p, io %p, fo: %p\n",env,io,_file_open); jstring js = env->NewStringUTF(path.utf8().get_data()); int res = env->CallIntMethod(io,_file_open,js,p_mode_flags&WRITE?true:false); env->DeleteLocalRef(js); + OS::get_singleton()->print("fopen: '%s' ret %i\n",path.utf8().get_data(),res); + + if (res<=0) return ERR_FILE_CANT_OPEN; id=res; |
