*/}}
Browse Source

android exit

YimingWu 4 months ago
parent
commit
3c9d44d6df
1 changed files with 3 additions and 0 deletions
  1. 3 0
      la_kernel.c

+ 3 - 0
la_kernel.c

@@ -8879,6 +8879,9 @@ void android_main(struct android_app *app){
             if ( MAIN.event_source != NULL) MAIN.event_source->process(app, MAIN.event_source);
         }
     }
+    __android_log_print(ANDROID_LOG_DEBUG, "LAGUI", "Application successfully ended.\n");
+    /* Unloads the native dynamic library so we can get clean restarts. */
+    exit(0);
 }
 
 void la_DisplayKeyboard(bool pShow) {