still working on the new savegame scheme

main game works fine, saving/loading will not be possible
This commit is contained in:
minjaesong
2021-10-07 17:43:23 +09:00
parent 6d8a7520ac
commit 3f9b41fd29
23 changed files with 200 additions and 86 deletions

View File

@@ -702,7 +702,7 @@ fun AppUpdateListOfSavegames() {
fun checkForSavegameDamage(skimmer: DiskSkimmer): Boolean {
try {
// # check for meta
val metaFile = skimmer.requestFile(-1) ?: return true
/*val metaFile = skimmer.requestFile(-1) ?: return true
// # check if The Player is there
val player = skimmer.requestFile(PLAYER_REF_ID.toLong().and(0xFFFFFFFFL))?.contents ?: return true
// # check if:
@@ -723,7 +723,7 @@ fun checkForSavegameDamage(skimmer: DiskSkimmer): Boolean {
System.err.println("Nonexisting actor $it for savegame ${skimmer.diskFile.absolutePath}")
hasMissingActor = true
}
}; if (hasMissingActor) return true
}; if (hasMissingActor) return true*/
return false