diff options
| author | JosJuice <josjuice@gmail.com> | 2026-05-01 10:40:17 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2026-05-08 10:56:51 +0200 |
| commit | 4470534dc594532714768586c2041d27476ae77f (patch) | |
| tree | bb35e07d7cfa4c3df52a54a5b0ec705a98c8e7bf /Source/Android/app/src/main/java/org | |
| parent | d19952cc113940391ebcf264ced7ddc56310ba75 (diff) | |
Android: Move alert message log from Kotlin to C++
For some reason, NativeLibrary.kt calling Log for the alert message text
makes Dolphin die with a JNI error. Supposedly the jstring passed to the
logging function is invalid. I don't understand why, because the dialog
that we show right afterwards is able to read the string just fine. The
error happens even if I pass the string directly to Log without
prepending any extra text.
There's no real downside to having the logging in C++ instead of Kotlin,
so let's move it to C++ to avoid the JNI error.
Diffstat (limited to 'Source/Android/app/src/main/java/org')
| -rw-r--r-- | Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.kt | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.kt b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.kt index a4d9bac35a..2ead4b534b 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.kt +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/NativeLibrary.kt @@ -480,7 +480,6 @@ object NativeLibrary { fun displayAlertMsg( caption: String, text: String, yesNo: Boolean, isWarning: Boolean, nonBlocking: Boolean ): Boolean { - Log.error("[NativeLibrary] Alert: $text") val emulationActivity = emulationActivityRef.get() var result = false |
