From 3bb2402e822ae62ed350e1b03fd90d4c8eb4486e Mon Sep 17 00:00:00 2001 From: zoff99 Date: Thu, 9 Jan 2025 20:13:29 +0100 Subject: [PATCH] show if the JNI lib is running with ASAN in the app title --- src/main/kotlin/Main.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index 954bdd72..e630874c 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -2357,11 +2357,17 @@ private fun MainAppStart() var win_title_addon = "Unknown Version" try { + var tox_jni_asan_append = "" + if (MainActivity.jnictoxcore_version().contains("-asan", true)) + { + tox_jni_asan_append = "-ASAN" + } win_title_addon = BuildConfig.APP_VERSION + " (Build: " + BuildConfig.GIT_COMMIT_HASH.take(4) + "-" + (MainActivity.getNativeLibTOXGITHASH()?.take(3) ?: "???") + "-" + (MainActivity.getNativeLibGITHASH()?.take(3) ?: "???") + + tox_jni_asan_append + ")" } catch (_: java.lang.Exception) {