src/core/android/SDL_android.c
changeset 10199 6ab154366a9b
parent 10080 426de7645465
child 10262 985f92b2f8e9
equal deleted inserted replaced
10198:136b3507f669 10199:6ab154366a9b
   137     }
   137     }
   138     __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL_Android_Init() finished!");
   138     __android_log_print(ANDROID_LOG_INFO, "SDL", "SDL_Android_Init() finished!");
   139 }
   139 }
   140 
   140 
   141 /* Drop file */
   141 /* Drop file */
   142 void Java_org_libsdl_app_SDLActivity_onNativeDropFile(
   142 JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeDropFile(
   143                                     JNIEnv* env, jclass jcls,
   143                                     JNIEnv* env, jclass jcls,
   144                                     jstring filename)
   144                                     jstring filename)
   145 {
   145 {
   146     const char *path = (*env)->GetStringUTFChars(env, filename, NULL);
   146     const char *path = (*env)->GetStringUTFChars(env, filename, NULL);
   147     SDL_SendDropFile(NULL, path);
   147     SDL_SendDropFile(NULL, path);