more chunk pool codes

This commit is contained in:
minjaesong
2024-10-08 00:15:17 +09:00
parent 07b4f3bff1
commit b4523b8492
4 changed files with 56 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ import kotlin.math.roundToInt
class SavegameCollection(files0: List<DiskSkimmer>) {
/** Sorted in reverse by the last modified time of the files, index zero being the most recent */
val files = files0.sortedBy { it.diskFile.name }.sortedByDescending {
val files: List<DiskSkimmer> = files0.sortedBy { it.diskFile.name }.sortedByDescending {
it.getLastModifiedTime().shl(2) or
it.diskFile.extension.matches(Regex("^[abc]${'$'}")).toLong(1) or
it.diskFile.extension.isBlank().toLong(0)