diff --git a/neko-engine/build.gradle b/neko-engine/build.gradle index 7db1e19..fea3221 100644 --- a/neko-engine/build.gradle +++ b/neko-engine/build.gradle @@ -7,7 +7,7 @@ plugins { } group 'de.twometer' -version '2.3.1' +version '2.3.2' /* Version configuration */ project.ext.lwjglVersion = "3.2.3" diff --git a/neko-engine/src/main/kotlin/de/twometer/neko/Neko.kt b/neko-engine/src/main/kotlin/de/twometer/neko/Neko.kt index 39f7074..9701102 100644 --- a/neko-engine/src/main/kotlin/de/twometer/neko/Neko.kt +++ b/neko-engine/src/main/kotlin/de/twometer/neko/Neko.kt @@ -2,6 +2,6 @@ package de.twometer.neko object Neko { - const val VERSION = "2.3.1" + const val VERSION = "2.3.2" } \ No newline at end of file diff --git a/neko-engine/src/main/kotlin/de/twometer/neko/gui/UltralightLoader.kt b/neko-engine/src/main/kotlin/de/twometer/neko/gui/UltralightLoader.kt index 7b1f630..5cb7bc4 100644 --- a/neko-engine/src/main/kotlin/de/twometer/neko/gui/UltralightLoader.kt +++ b/neko-engine/src/main/kotlin/de/twometer/neko/gui/UltralightLoader.kt @@ -1,6 +1,7 @@ package de.twometer.neko.gui import com.labymedia.ultralight.UltralightJava +import com.labymedia.ultralight.UltralightLoadException import com.labymedia.ultralight.UltralightPlatform import com.labymedia.ultralight.config.FontHinting import com.labymedia.ultralight.config.UltralightConfig @@ -26,7 +27,14 @@ object UltralightLoader { if (!Files.exists(ultralightPath)) error("Ultralight natives not found") - UltralightJava.extractNativeLibrary(ultralightPath) + try { + UltralightJava.extractNativeLibrary(ultralightPath) + } catch (e: UltralightLoadException) { + if (e.cause is AccessDeniedException) + logger.warn { "Write access to the Ultralight natives directory is denied. This is probably due to the app already running, ignoring." } + else throw e + } + UltralightJava.load(ultralightPath) val platform = UltralightPlatform.instance()