mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 02:20:14 +08:00
prep for native
This commit is contained in:
parent
b92e3ae64a
commit
411157bada
@ -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,
|
||||
|
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user