mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 02:07:49 +00:00
Android: nativeQuit for SDLActivity thread
- destroy Android_ActivityMutex - display any SDL error message that may have occured in this thread, since SDL_GetError() is thread specific, and user has no access to it.
This commit is contained in:
parent
dad8161103
commit
66fbfe1d00
2 changed files with 25 additions and 0 deletions
|
|
@ -405,6 +405,8 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
|||
}
|
||||
}
|
||||
|
||||
SDLActivity.nativeQuit();
|
||||
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
|
|
@ -727,6 +729,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
|
|||
public static native int nativeRunMain(String library, String function, Object arguments);
|
||||
public static native void nativeLowMemory();
|
||||
public static native void nativeSendQuit();
|
||||
public static native void nativeQuit();
|
||||
public static native void nativePause();
|
||||
public static native void nativeResume();
|
||||
public static native void onNativeDropFile(String filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue