DEADSOFTWARE

android: add libminiupnpc
[d2df-sdl.git] / android / src / org / d2df / app / Doom2DF.java
index 614110270add01ed5a2464755993dca55259e793..4f7b00d82d370c77394ae50cb8b541a7285dbdf5 100644 (file)
@@ -11,11 +11,12 @@ public class Doom2DF extends SDLActivity {
        @Override
        protected String[] getLibraries() {
                return new String[] {
+                       "crystax",
                        "SDL2",
                        "mpg123",
                        "SDL2_mixer",
                        "enet",
-                       "nanoGL",
+                       "miniupnpc",
                        "Doom2DF"
                };
        }
@@ -33,4 +34,12 @@ public class Doom2DF extends SDLActivity {
                CopyAssets.copyAssets(SDL.getContext(), "instruments");
                CopyAssets.copyAssets(SDL.getContext(), "timidity.cfg");
        }
+
+       @Override
+       protected void onDestroy() {
+               super.onDestroy();
+
+               /* This will fix bug #31 and may be #32 */
+               System.exit(0);
+       }
 }