Skip to content

Commit

Permalink
change multimc cfg to map
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkyAI committed Feb 14, 2021
1 parent a411f15 commit 748e622
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/main/kotlin/voodoo/data/PackOptions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ data class PackOptions(
@Serializable
data class MultiMC(
var relativeSelfupdateUrl: String? = null,
var instanceCfg: List<Pair<String, String>> = listOf()
var instanceCfg: Map<String, String> = emptyMap()
)
}
2 changes: 1 addition & 1 deletion multimc/src/main/kotlin/voodoo/mmc/MMCUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ object MMCUtil {
icon: File? = null,
mcVersion: String? = null,
modloader: Modloader?,
extraCfg: List<Pair<String, String>> = listOf(),
extraCfg: Map<String, String> = emptyMap(),
instanceDir: File = with(findDir()) {
this.resolve(
readCfg(this.resolve("multimc.cfg"))["InstanceDir"] ?: "instances"
Expand Down
3 changes: 2 additions & 1 deletion voodoo/src/main/kotlin/voodoo/pack/VersionPackageConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package voodoo.pack

import kotlinx.serialization.Serializable
import moe.nikky.voodoo.format.FnPatternList
import java.util.*

@Serializable
data class VersionPackageConfig(
Expand All @@ -16,6 +17,6 @@ data class VersionPackageConfig(

@Serializable
data class MultimcPackageOption(
var instanceCfg: List<Pair<String, String>> = listOf()
var instanceCfg: Map<String, String> = emptyMap()
)
}

0 comments on commit 748e622

Please sign in to comment.