prep for native

This commit is contained in:
jiahua.liu 2020-03-29 20:37:47 +08:00
parent b92e3ae64a
commit 411157bada
2 changed files with 9 additions and 4 deletions

View File

@ -16,8 +16,8 @@ import kotlin.concurrent.thread
class MiraiConsoleGraphicalLoader {
companion object {
internal lateinit var coreVersion :String
internal lateinit var consoleVersion: String
internal var coreVersion :String = "0.0.0"
internal var consoleVersion: String = "0.0.0"
@JvmStatic
fun load(
coreVersion: String,

View File

@ -72,12 +72,17 @@ object WrapperMain {
ConsoleUpdater.versionCheck(CONSOLE_GRAPHICAL)
}
}
uiLog("版本检查完成\n")
uiLog("版本检查完成, 启动中\n")
runBlocking {
MiraiDownloader.downloadIfNeed(true)
}
start(CONSOLE_GRAPHICAL)
GlobalScope.launch {
delay(3000)
uiOpen = false
f.isVisible = false
}
start(CONSOLE_GRAPHICAL)
} else {
preStartInNonNative()
}