Skip to content

Commit

Permalink
show if the JNI lib is running with ASAN in the app title
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jan 9, 2025
1 parent c69839f commit 054d2aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 054d2aa

Please sign in to comment.