mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-20 15:34:05 +09:00
writing correct comp id for chosen compressor
This commit is contained in:
@@ -44,6 +44,7 @@ object Common {
|
||||
const val COMP_GZIP = 1
|
||||
// const val COMP_LZMA = 2
|
||||
const val COMP_ZSTD = 3
|
||||
const val COMP_SNAPPY = 4
|
||||
|
||||
val CHARSET = Charsets.UTF_8
|
||||
|
||||
@@ -529,6 +530,10 @@ object Common {
|
||||
}
|
||||
}
|
||||
|
||||
fun getCompIndex() = when (App.getConfigString("savegamecomp")) {
|
||||
"snappy" -> COMP_SNAPPY
|
||||
else -> COMP_ZSTD
|
||||
}
|
||||
|
||||
fun enasciiToString(ba: ByteArray64): String = enasciiToString(ba.iterator())
|
||||
fun enasciiToString(ba: Iterator<Byte>): String {
|
||||
|
||||
Reference in New Issue
Block a user