diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/Starbound.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/Starbound.kt index fcffc87b..99cc3c4a 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/Starbound.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/Starbound.kt @@ -358,10 +358,10 @@ object Starbound { var time = System.currentTimeMillis() if (archivePaths.isNotEmpty()) { - callback(false, false, "Reading pak archives...".also(LOGGER::info)) + callback(false, false, "Searching for pak archives...".also(LOGGER::info)) for (path in archivePaths) { - callback(false, false, "Reading ${path.name}...".also(LOGGER::info)) + callback(false, false, "Reading index of ${path.name}...".also(LOGGER::info)) addPak(StarboundPak(path) { _, status -> callback(false, true, "${path.name}: $status") diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/io/StarboundPak.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/io/StarboundPak.kt index 1292c827..9d4a5716 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/io/StarboundPak.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/io/StarboundPak.kt @@ -193,7 +193,7 @@ class StarboundPak(val path: File, callback: (finished: Boolean, status: String) // byte[] (utf-8 имя файла) // long (offset от начала файла) // long (длина файла) - val stream = DataInputStream(BufferedInputStream(Channels.newInputStream(reader.channel))) + val stream = DataInputStream(BufferedInputStream(Channels.newInputStream(reader.channel), 2 shl 22)) for (i in 0 until indexNodeCount) { var name: String? = null