Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Michael Pfaff | 2b2b47454c | |
Michael Pfaff | b1ef65e2a9 |
|
@ -36,10 +36,28 @@ pub extern "system" fn Java_com_discord_rpc_DiscordRPC_connect(
|
||||||
match jni_connect(env, obj, client_id) {
|
match jni_connect(env, obj, client_id) {
|
||||||
Ok(_) => true,
|
Ok(_) => true,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!(
|
match e.downcast::<std::io::Error>() {
|
||||||
concat!("at ", file!(), ":", line!(), ":", column!(), ": {}"),
|
Ok(e) => {
|
||||||
e
|
if e.kind() == std::io::ErrorKind::NotFound {
|
||||||
);
|
debug!(
|
||||||
|
concat!("at ", file!(), ":", line!(), ":", column!(), ": {}"),
|
||||||
|
e
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
} else {
|
||||||
|
error!(
|
||||||
|
concat!("at ", file!(), ":", line!(), ":", column!(), ": {}"),
|
||||||
|
e
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Err(e) => {
|
||||||
|
error!(
|
||||||
|
concat!("at ", file!(), ":", line!(), ":", column!(), ": {}"),
|
||||||
|
e
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
ThisBuild / organization := "com.discord"
|
|
||||||
ThisBuild / version := "0.2.1"
|
|
||||||
|
|
||||||
lazy val root = (project in file("."))
|
|
||||||
.settings(
|
|
||||||
name := "discord-rpc"
|
|
||||||
)
|
|
||||||
|
|
||||||
//libraryDependencies += "org.scalactic" %% "scalactic" % "3.2.10"
|
|
||||||
//libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.10" % "test"
|
|
||||||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.10" % Test
|
|
Loading…
Reference in New Issue