diff --git a/BepInEx/Chainloader.cs b/BepInEx/Chainloader.cs index bec19c1..b41bcef 100644 --- a/BepInEx/Chainloader.cs +++ b/BepInEx/Chainloader.cs @@ -44,7 +44,7 @@ namespace BepInEx try { - BepInLogger.Log($"BepInEx {Assembly.GetEntryAssembly().GetName().Version}"); + BepInLogger.Log($"BepInEx {Assembly.GetExecutingAssembly().GetName().Version}"); BepInLogger.Log($"Chainloader started"); UnityEngine.Object.DontDestroyOnLoad(ManagerObject); @@ -53,10 +53,10 @@ namespace BepInEx { var pluginTypes = TypeLoader.LoadTypes(Utility.PluginsDirectory).ToList(); - pluginTypes = TopologicalSort(pluginTypes, x => TypeLoader.GetDependencies(x, pluginTypes)).ToList(); - BepInLogger.Log($"{pluginTypes.Count} plugins found"); + pluginTypes = TopologicalSort(pluginTypes, x => TypeLoader.GetDependencies(x, pluginTypes)).ToList(); + foreach (Type t in pluginTypes) { try