Final attempt at fixing lollipop shutdown error

If this doesn't work it must be 5.0 OS bug
master
OttoLidenbrock 2015-05-09 13:19:08 +10:00
parent 09f260e026
commit 3effdb1806
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ void android_main(android_app *app)
porting::cleanupAndroid();
errorstream << "Shutting down minetest." << std::endl;
exit(0);
}
/* handler for finished message box input */
@ -177,6 +178,7 @@ void cleanupAndroid()
JavaVM *jvm = app_global->activity->vm;
if (jvm)
jvm->DetachCurrentThread();
ANativeActivity_finish(app_global->activity);
}
void setExternalStorageDir(JNIEnv* lJNIEnv)