x mark on save failed

This commit is contained in:
minjaesong
2021-10-10 21:31:14 +09:00
parent 3ca95e138d
commit 0925ec2580
5 changed files with 32 additions and 32 deletions

View File

@@ -183,13 +183,7 @@ class WorldSavingThread(val disk: VirtualDisk, val outFile: File, val ingame: Te
WriteSavegame.savingStatus = 255
try {
callback()
}
catch (e: Throwable) {
e.printStackTrace()
ingame.uiAutosaveNotifier.setAsError()
}
callback()
}
}
@@ -208,12 +202,6 @@ class PlayerSavingThread(val disk: VirtualDisk, val outFile: File, val ingame: T
WritePlayer(ingame.actorGamer, disk)
VDUtil.dumpToRealMachine(disk, outFile)
try {
callback()
}
catch (e: Throwable) {
e.printStackTrace()
ingame.uiAutosaveNotifier.setAsError()
}
callback()
}
}