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