mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 07:16:54 +07:00
3.18.11-patch1
This commit is contained in:
parent
c70ac334bd
commit
f4f673dc8a
@ -3,8 +3,8 @@ package com.unciv.build
|
||||
object BuildConfig {
|
||||
const val kotlinVersion = "1.5.30"
|
||||
const val appName = "Unciv"
|
||||
const val appCodeNumber = 659
|
||||
const val appVersion = "3.18.11"
|
||||
const val appCodeNumber = 660
|
||||
const val appVersion = "3.18.11-patch1"
|
||||
|
||||
const val gdxVersion = "1.10.0"
|
||||
const val roboVMVersion = "2.3.1"
|
||||
|
@ -12,8 +12,7 @@ import java.io.PrintWriter
|
||||
import java.io.StringWriter
|
||||
|
||||
/** Screen to crash to when an otherwise unhandled exception or error is thrown. */
|
||||
class CrashScreen(message: String): BaseScreen() {
|
||||
constructor(exception: Throwable): this(exception.stringify())
|
||||
class CrashScreen(val exception: Throwable): BaseScreen() {
|
||||
|
||||
private companion object {
|
||||
fun Throwable.stringify(): String {
|
||||
@ -23,7 +22,7 @@ class CrashScreen(message: String): BaseScreen() {
|
||||
}
|
||||
}
|
||||
|
||||
val text = generateReportHeader() + message
|
||||
val text = generateReportHeader() + exception.stringify()
|
||||
var copied = false
|
||||
private set
|
||||
|
||||
@ -118,7 +117,7 @@ class CrashScreen(message: String): BaseScreen() {
|
||||
}
|
||||
val closeButton = "Close Unciv".toButton()
|
||||
.onClick {
|
||||
Gdx.app.exit()
|
||||
throw exception // throw the original exception to allow crash recording on GP
|
||||
}
|
||||
|
||||
val buttonsTable = Table()
|
||||
|
Loading…
Reference in New Issue
Block a user