Fixed crashing error when loading mods

Load game now shows user ShowableUncivExceptions
This commit is contained in:
Yair Morgenstern
2020-04-27 19:23:59 +03:00
parent cee8b58e5a
commit 6e03910097
22 changed files with 72 additions and 98 deletions

View File

@ -45,8 +45,8 @@ class AndroidLauncher : AndroidApplication() {
if (internalModsDir.exists()) internalModsDir.deleteRecursively()
// Copy external mod directory (with data user put in it) to internal (where it can be read)
if (!externalModsDir.exists()) externalModsDir.mkdirs()
externalModsDir.copyRecursively(internalModsDir)
if (!externalModsDir.exists()) externalModsDir.mkdirs() // this can fail sometimes, which is why we check if it exists again in the next line
if (externalModsDir.exists()) externalModsDir.copyRecursively(internalModsDir)
}
override fun onPause() {