mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-25 06:50:09 +08:00
plugin supporting
This commit is contained in:
parent
be91d6078a
commit
350fe5aaf4
@ -134,7 +134,7 @@ object PluginManager {
|
||||
}
|
||||
}
|
||||
|
||||
fun checkNoCircularDependsCheck(
|
||||
fun checkNoCircularDepends(
|
||||
target: PluginDescription,
|
||||
needDepends: List<String>,
|
||||
existDepends: MutableList<String>
|
||||
@ -154,14 +154,14 @@ object PluginManager {
|
||||
|
||||
needDepends.forEach {
|
||||
if (pluginsFound.containsKey(it)) {
|
||||
checkNoCircularDependsCheck(pluginsFound[it]!!, pluginsFound[it]!!.depends, existDepends)
|
||||
checkNoCircularDepends(pluginsFound[it]!!, pluginsFound[it]!!.depends, existDepends)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pluginsFound.values.forEach {
|
||||
checkNoCircularDependsCheck(it, it.depends, mutableListOf())
|
||||
checkNoCircularDepends(it, it.depends, mutableListOf())
|
||||
}
|
||||
|
||||
//load
|
||||
|
Loading…
Reference in New Issue
Block a user