savegame list generator interrupts when a save is being loaded

This commit is contained in:
minjaesong
2023-11-14 13:28:00 +09:00
parent 7391d5e43a
commit a098729db8
3 changed files with 7 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ class UILoadList(val full: UILoadSavegame) : UICanvas() {
private var spinnerFrame = 0
private val spinnerInterval = 1f / 60
private lateinit var cellLoadThread: Thread
internal lateinit var cellLoadThread: Thread
fun advanceMode() {
App.printdbg(this, "Load playerUUID: ${UILoadGovernor.playerUUID}, worldUUID: ${UILoadGovernor.worldUUID}")

View File

@@ -84,6 +84,8 @@ class UILoadManage(val full: UILoadSavegame) : UICanvas() {
full.loadManageSelectedGame = full.loadables.getLoadableSave()!!
mode = MODE_LOAD
full.interruptListGenerator()
}
}
}

View File

@@ -191,5 +191,9 @@ class UILoadSavegame(val remoCon: UIRemoCon) : Advanceable() {
batch.projectionMatrix = camera.combined
}
fun interruptListGenerator() {
transitionalListing.cellLoadThread.interrupt()
}
}