mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 16:28:40 +07:00
Resolved #4151 - Discord library load will now catch failed attempts properly
This commit is contained in:
@ -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")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user