| 99 | } |
| 100 | |
| 101 | String GodotIOJavaWrapper::get_cache_dir() { |
| 102 | if (_get_cache_dir) { |
| 103 | JNIEnv *env = get_jni_env(); |
| 104 | ERR_FAIL_NULL_V(env, String()); |
| 105 | jstring s = (jstring)env->CallObjectMethod(godot_io_instance, _get_cache_dir); |
| 106 | return jstring_to_string(s, env); |
| 107 | } else { |
| 108 | return String(); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | String GodotIOJavaWrapper::get_temp_dir() { |
| 113 | if (_get_temp_dir) { |
no test coverage detected