Skip to content

Commit

Permalink
Prevent packaged exe being shot down by mod atlas packing failures (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeTroglodyte authored Sep 10, 2021
1 parent 19837c2 commit e575399
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions desktop/src/com/unciv/app/desktop/ImagePacker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,13 @@ internal object ImagePacker {
val modDirectory = File("mods")
if (modDirectory.exists()) {
for (mod in modDirectory.listFiles()!!) {
if (!mod.isHidden && File(mod.path + "/Images").exists())
packImagesIfOutdated(defaultSettings, mod.path + "/Images", mod.path, "game")
if (!mod.isHidden && File(mod.path + "/Images").exists()) {
try {
packImagesIfOutdated(defaultSettings, mod.path + "/Images", mod.path, "game")
} catch (ex: Throwable) {
println("Exception in ImagePacker: ${ex.message}")
}
}
}
}

Expand Down

0 comments on commit e575399

Please sign in to comment.