From cad5b3df74791cc431ce500b555fe57d80d18963 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Thu, 19 Nov 2020 10:09:17 +0300 Subject: [PATCH] Fix postload init. --- skiko/src/jvmMain/kotlin/org/jetbrains/skiko/Library.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/skiko/src/jvmMain/kotlin/org/jetbrains/skiko/Library.kt b/skiko/src/jvmMain/kotlin/org/jetbrains/skiko/Library.kt index 94033d048..7214d7235 100644 --- a/skiko/src/jvmMain/kotlin/org/jetbrains/skiko/Library.kt +++ b/skiko/src/jvmMain/kotlin/org/jetbrains/skiko/Library.kt @@ -49,6 +49,13 @@ object Library { } miscSystemInit() + + try { + // Init code executed after library was loaded. + org.jetbrains.skija.impl.Library._nAfterLoad() + } catch (t: Throwable) { + t.printStackTrace() + } loaded = true }