|
@@ -267,6 +267,8 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
|
|
|
|
|
|
|
// love2d-mod-start: allow restarting of the native thread
|
|
// love2d-mod-start: allow restarting of the native thread
|
|
|
public void startNative() {
|
|
public void startNative() {
|
|
|
|
|
+ boolean hadSDLThread = SDLActivity.mSDLThread != null;
|
|
|
|
|
+
|
|
|
// Set up JNI
|
|
// Set up JNI
|
|
|
SDL.setupJNI();
|
|
SDL.setupJNI();
|
|
|
|
|
|
|
@@ -316,6 +318,10 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
|
|
SDLActivity.onNativeDropFile(filename);
|
|
SDLActivity.onNativeDropFile(filename);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if (hadSDLThread) {
|
|
|
|
|
+ resumeNativeThread();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
// love2d-mod-end: allow restarting of the native thread
|
|
// love2d-mod-end: allow restarting of the native thread
|
|
|
|
|
|