better place in-code to load the library

This commit is contained in:
ceikry 2021-06-26 12:20:44 -05:00
parent 8a4e297114
commit 6825529654

View file

@ -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()
}