Browse Source

Output Unity version

tags/3,1b
Eusth 7 years ago
parent
commit
2800b10d31
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      IllusionInjector/PluginManager.cs

+ 5
- 2
IllusionInjector/PluginManager.cs View File

@@ -51,6 +51,7 @@ namespace IllusionInjector

// DEBUG
Console.WriteLine("Running on Unity {0}", UnityEngine.Application.unityVersion);
Console.WriteLine("-----------------------------");
Console.WriteLine("Loading plugins from {0} and found {1}", pluginDirectory, _Plugins.Count);
Console.WriteLine("-----------------------------");
@@ -91,15 +92,17 @@ namespace IllusionInjector
if(filter == null || Enumerable.Contains(filter, exeName, StringComparer.OrdinalIgnoreCase))
plugins.Add(pluginInstance);
}
catch (Exception)
catch (Exception e)
{
Console.WriteLine("[WARN] Could not load plugin {0} in {1}! {2}", t.FullName, Path.GetFileName(file), e);
}
}
}

}
catch (Exception)
catch (Exception e)
{
Console.WriteLine("[ERROR] Could not load {0}! {1}", Path.GetFileName(file), e);
}

return plugins;


Loading…
Cancel
Save