mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Plugins - Check main entry DLL casing to avoid weird namespace issues
Editor - Removed limit on zooming with mouseswheel, closes #528
This commit is contained in:
1 parent
45bf7e7c82
commit
25dcb16964
2 files changed
+5
-2
No files matched your search
@@ -270,7 +270,10 @@ namespace Artemis.Core.Services
|
||||
string? mainFile = plugin.ResolveRelativePath(plugin.Info.Main);
|
||||
if (!File.Exists(mainFile))
|
||||
throw new ArtemisPluginException(plugin, "Couldn't find the plugins main entry at " + mainFile);
|
||||
|
||||
FileInfo[] fileInfos = directory.GetFiles();
|
||||
if (!fileInfos.Any(f => string.Equals(f.Name, plugin.Info.Main, StringComparison.InvariantCulture)))
|
||||
throw new ArtemisPluginException(plugin, "Plugin main entry casing mismatch at " + plugin.Info.Main);
|
||||
|
||||
// Load the plugin, all types implementing Plugin and register them with DI
|
||||
plugin.PluginLoader = PluginLoader.CreateFromAssemblyFile(mainFile!, configure =>
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user