HMCL modpack export

This commit is contained in:
huangyuhui
2017-08-24 13:57:01 +08:00
parent 2e3d9c22e3
commit 6da1dc5372
27 changed files with 648 additions and 150 deletions

View File

@@ -30,6 +30,7 @@ import org.jackhuang.hmcl.launch.ProcessListener
import org.jackhuang.hmcl.util.makeCommand
import org.jackhuang.hmcl.task.Task
import org.jackhuang.hmcl.task.TaskListener
import org.jackhuang.hmcl.util.Log4jLevel
import java.io.File
import java.net.InetSocketAddress
import java.net.Proxy
@@ -53,15 +54,11 @@ class Test {
account = OfflineAccount.fromUsername("player007").logIn(),
options = LaunchOptions(gameDir = repository.baseDirectory),
listener = object : ProcessListener {
override fun onLog(log: String) {
override fun onLog(log: String, level: Log4jLevel) {
println(log)
}
override fun onErrorLog(log: String) {
System.err.println(log)
}
override fun onExit(exitCode: Int) {
override fun onExit(exitCode: Int, exitType: ProcessListener.ExitType) {
println("Process exited then exit code $exitCode")
}