mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-24 01:35:58 +07:00
Resolved #4151 - Discord library load will now catch failed attempts properly
This commit is contained in:
parent
e6850b857a
commit
79b3fb6de4
@ -215,7 +215,8 @@ internal object DesktopLauncher {
|
||||
} catch (ex: Exception) {
|
||||
}
|
||||
}
|
||||
} catch (ex: Exception) {
|
||||
} catch (ex: Throwable) {
|
||||
// This needs to be a Throwable because if we can't find the discord_rpc library, we'll get a UnsatisfiedLinkError, which is NOT an exception.
|
||||
println("Could not initialize Discord")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user