mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Initialize MiraiConsole when MiraiConsoleInitializer.init called
This commit is contained in:
parent
2c09f1d82d
commit
4f418e7a0b
@ -32,6 +32,7 @@ internal object MiraiConsoleInitializer {
|
||||
/** 由前端调用 */
|
||||
internal fun init(instance: IMiraiConsole) {
|
||||
this.instance = instance
|
||||
MiraiConsole.initialize()
|
||||
}
|
||||
|
||||
}
|
||||
@ -95,6 +96,10 @@ object MiraiConsole : CoroutineScope, IMiraiConsole {
|
||||
|
||||
@MiraiExperimentalAPI
|
||||
fun newLogger(identity: String?): MiraiLogger = frontEnd.loggerFor(identity)
|
||||
|
||||
internal fun initialize() {
|
||||
// Only for initialize
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user