From d789d8d75fda89d68a75e2ce605f082f379b8cfe Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 21 May 2015 18:48:35 -0500 Subject: [Android] Add support for panic alerts to the JNI. --- .../java/org/dolphinemu/dolphinemu/NativeLibrary.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Source/Android/app/src/main/java') diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java index 79fedf6789..12259de37b 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.java @@ -217,6 +217,21 @@ public final class NativeLibrary */ public static native void WriteProfileResults(); + /** + * @return If we have an alert + */ + public static native boolean HasAlertMsg(); + + /** + * @return The alert string + */ + public static native String GetAlertMsg(); + + /** + * Clears event in the JNI so we can continue onward + */ + public static native void ClearAlertMsg(); + /** Native EGL functions not exposed by Java bindings **/ public static native void eglBindAPI(int api); -- cgit v1.2.3