mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-26 05:14:32 -04:00
parent
2b6c9e7ec0
commit
600f262cca
@ -96,7 +96,9 @@ class LoadGameScreen(previousScreen:CameraStageBaseScreen) : PickerScreen() {
|
|||||||
loadFromCustomLocation.onClick {
|
loadFromCustomLocation.onClick {
|
||||||
GameSaver.loadGameFromCustomLocation { gameInfo, exception ->
|
GameSaver.loadGameFromCustomLocation { gameInfo, exception ->
|
||||||
if (gameInfo != null) {
|
if (gameInfo != null) {
|
||||||
game.loadGame(gameInfo)
|
Gdx.app.postRunnable {
|
||||||
|
game.loadGame(gameInfo)
|
||||||
|
}
|
||||||
} else if (exception !is CancellationException) {
|
} else if (exception !is CancellationException) {
|
||||||
errorLabel.setText("Could not load game from custom location!".tr())
|
errorLabel.setText("Could not load game from custom location!".tr())
|
||||||
exception?.printStackTrace()
|
exception?.printStackTrace()
|
||||||
@ -195,4 +197,4 @@ class LoadGameScreen(previousScreen:CameraStageBaseScreen) : PickerScreen() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user