Commit Graph
2 Commits
Author SHA1 Message Date
LootBaggerandAdam 57622f3bad plugin manager: optimize plugin dependency sorting
Previously, PluginManager.loadPlugins would make a graph of reverse
dependencies, topologically sort them, then reverse the list. This commit
changes loadPlugins to build a graph of dependencies so no reversal is needed.

Co-authored-by: Adam <Adam@sigterm.info>
2022-02-05 23:17:43 -05:00
LootBaggerandAdam e17baf1aee plugin manager: fix plugins with multiple dependencies
If one plugin has multiple dependencies this would throw a concurrent
modification exception due to iterating the successors after removing
the edge

Fill out javadoc for topologicalSort

Co-authored-by: Adam <Adam@sigterm.info>
2022-02-05 23:17:43 -05:00