forked from 2009Scape/Server
better place in-code to load the library
This commit is contained in:
parent
8a4e297114
commit
6825529654
1 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue