equal
deleted
inserted
replaced
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); |