3.18.11-patch1

This commit is contained in:
yairm210 2021-12-21 21:58:01 +02:00
parent c70ac334bd
commit f4f673dc8a
2 changed files with 5 additions and 6 deletions

View File

@ -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"

View File

@ -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()