From 8d99e158428b4ed90b09ee17933c9a2a48532157 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Sat, 15 Sep 2018 19:26:18 +0300 Subject: [PATCH] Android: hack-fix bug #31 and #32 --- android/src/org/d2df/app/Doom2DF.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/android/src/org/d2df/app/Doom2DF.java b/android/src/org/d2df/app/Doom2DF.java index 6141102..48bd752 100644 --- a/android/src/org/d2df/app/Doom2DF.java +++ b/android/src/org/d2df/app/Doom2DF.java @@ -33,4 +33,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); + } } -- 2.29.2