mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-21 02:15:11 -06:00
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
|
|
@ -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