forked from 2009Scape/Server
Replace RPC lib with a fixed version that works on Linux.
This commit is contained in:
parent
a2fed269cc
commit
74dfefdb47
3 changed files with 2 additions and 3 deletions
|
|
@ -9,11 +9,10 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.Vatuu:discord-rpc:1.6.2'
|
||||
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
|
||||
implementation("com.github.ajalt.mordant:mordant:2.0.0-alpha2")
|
||||
implementation "org.jetbrains:markdown:0.2.4"
|
||||
implementation files('libs/clientlibs.jar')
|
||||
implementation files('libs/clientlibs.jar', 'libs/discord-rpc.jar')
|
||||
}
|
||||
|
||||
jar {
|
||||
|
|
|
|||
BIN
Client/libs/discord-rpc.jar
Normal file
BIN
Client/libs/discord-rpc.jar
Normal file
Binary file not shown.
|
|
@ -18,7 +18,7 @@ object Discord {
|
|||
//Removed support for Linux due to the outlined issue on line 37. TODO: Revisit this when the RPC library updates. There's a PR there that *should* fix it.
|
||||
fun checkInitializable() : Boolean{
|
||||
val OS = System.getProperty("os.name")
|
||||
if(OS.toLowerCase().startsWith("windows")){
|
||||
if(OS.toLowerCase().startsWith("windows") || OS.toLowerCase().contains("nux")){
|
||||
val arch = System.getProperty("os.arch")
|
||||
return arch != "aarch64" && !initialized
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue