From 6825529654c9dcf55481d92043760d56c666abd4 Mon Sep 17 00:00:00 2001 From: ceikry Date: Sat, 26 Jun 2021 12:20:44 -0500 Subject: [PATCH] better place in-code to load the library --- Client/src/main/kotlin/org/rs09/client/GameLaunch.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Client/src/main/kotlin/org/rs09/client/GameLaunch.kt b/Client/src/main/kotlin/org/rs09/client/GameLaunch.kt index 77f6cee72..43f978430 100644 --- a/Client/src/main/kotlin/org/rs09/client/GameLaunch.kt +++ b/Client/src/main/kotlin/org/rs09/client/GameLaunch.kt @@ -26,9 +26,6 @@ object GameLaunch { GameConfig.parse(GameConfig.configLocation) GameConfig.implementHoliday() GameConfig.extendRenderDistance() - if(System.getProperty("os.name").toLowerCase().contains("nux")){ //Fixes crashing due to XInitThreads not being called - JVM bug - System.load(javaClass.classLoader.getResource("libfixXInitThreads.so")!!.file) - } } catch (e: Exception){ GameConfig.IP_ADDRESS = "play.2009scape.org" GameConfig.IP_MANAGEMENT = "play.2009scape.org" @@ -46,6 +43,9 @@ object GameLaunch { /** * Launches the client */ + if(System.getProperty("os.name").toLowerCase().contains("nux")){ //Fixes crashing due to XInitThreads not being called - JVM bug + System.load(javaClass.classLoader.getResource("libfixXInitThreads.so")!!.file) + } GameShell.launchDesktop() }