mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
prep for native
This commit is contained in:
parent
b92e3ae64a
commit
411157bada
@ -16,8 +16,8 @@ import kotlin.concurrent.thread
|
|||||||
|
|
||||||
class MiraiConsoleGraphicalLoader {
|
class MiraiConsoleGraphicalLoader {
|
||||||
companion object {
|
companion object {
|
||||||
internal lateinit var coreVersion :String
|
internal var coreVersion :String = "0.0.0"
|
||||||
internal lateinit var consoleVersion: String
|
internal var consoleVersion: String = "0.0.0"
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun load(
|
fun load(
|
||||||
coreVersion: String,
|
coreVersion: String,
|
||||||
|
@ -72,12 +72,17 @@ object WrapperMain {
|
|||||||
ConsoleUpdater.versionCheck(CONSOLE_GRAPHICAL)
|
ConsoleUpdater.versionCheck(CONSOLE_GRAPHICAL)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uiLog("版本检查完成\n")
|
uiLog("版本检查完成, 启动中\n")
|
||||||
runBlocking {
|
runBlocking {
|
||||||
MiraiDownloader.downloadIfNeed(true)
|
MiraiDownloader.downloadIfNeed(true)
|
||||||
}
|
}
|
||||||
start(CONSOLE_GRAPHICAL)
|
GlobalScope.launch {
|
||||||
|
delay(3000)
|
||||||
|
uiOpen = false
|
||||||
|
f.isVisible = false
|
||||||
|
}
|
||||||
|
|
||||||
|
start(CONSOLE_GRAPHICAL)
|
||||||
} else {
|
} else {
|
||||||
preStartInNonNative()
|
preStartInNonNative()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user