| 124 | } |
| 125 | |
| 126 | void Directory_GetCachePath(cc_string* path) { |
| 127 | JNIEnv* env; |
| 128 | Java_GetCurrentEnv(env); |
| 129 | |
| 130 | jobject obj = Java_ICall_Obj(env, JAVA_getGameCacheDir, NULL); |
| 131 | Java_DecodeString(env, obj, path); |
| 132 | |
| 133 | Java_DeleteLocalRef(env, obj); |
| 134 | } |
| 135 | |
| 136 | /* All threads using JNI must detach BEFORE they exit */ |
| 137 | /* (see https://developer.android.com/training/articles/perf-jni#threads */ |
nothing calls this directly
no test coverage detected