Replace RPC lib with a fixed version that works on Linux.

This commit is contained in:
ceikry 2021-07-24 16:52:26 -05:00
parent a2fed269cc
commit 74dfefdb47
3 changed files with 2 additions and 3 deletions

View file

@ -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

Binary file not shown.

View file

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