mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 18:44:05 +09:00
some gui stuff for imported players
This commit is contained in:
@@ -167,8 +167,10 @@ class SavegameCollectionPair(private val player: SavegameCollection?, private va
|
||||
// private var autoPlayer: DiskSkimmer? = null
|
||||
// private var autoWorld: DiskSkimmer? = null
|
||||
|
||||
var isImported: Boolean = false; private set
|
||||
|
||||
/* removing auto/manual discrimination: on Local Asynchronous Multiplayer, if newer autosave is available, there is
|
||||
* no choice but loading one to preserve the data; then why bother having two? */
|
||||
* no choice but loading one to preserve the data; then why bother having two? */
|
||||
private var playerDisk: DiskSkimmer? = null; private set
|
||||
private var worldDisk: DiskSkimmer? = null; private set
|
||||
|
||||
@@ -221,6 +223,10 @@ class SavegameCollectionPair(private val player: SavegameCollection?, private va
|
||||
2
|
||||
else (player != null && world != null).toInt()
|
||||
|
||||
if (player != null) {
|
||||
isImported = (player.loadable().getSaveOrigin() and VDSaveOrigin.IMPORTED != 0)
|
||||
}
|
||||
|
||||
printdbg(this, "playerDisk = ${playerDisk?.diskFile?.path}")
|
||||
printdbg(this, "worldDisk = ${worldDisk?.diskFile?.path}")
|
||||
printdbg(this, "status = $status")
|
||||
|
||||
Reference in New Issue
Block a user