mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
Merge pull request #81 from PepperDash/bugfix/load-plugins-crash-with-no-plugins
Added condition to check for _loadedPluginsDirectoryPath when loading plugins
This commit is contained in:
@@ -290,6 +290,10 @@ namespace PepperDash.Essentials
|
|||||||
SystemUuid);
|
SystemUuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Debug.Console(0, "Authorization failed, code {0}: {1}", r.Code, r.ContentString);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Debug.Console(0, this, "Error {0} in authorizing system", e);
|
Debug.Console(0, this, "Error {0} in authorizing system", e);
|
||||||
|
|||||||
@@ -415,6 +415,7 @@ namespace PepperDash.Essentials
|
|||||||
// Deal with any .cplz files
|
// Deal with any .cplz files
|
||||||
UnzipAndMoveCplzArchives();
|
UnzipAndMoveCplzArchives();
|
||||||
|
|
||||||
|
if(Directory.Exists(_loadedPluginsDirectoryPath) {
|
||||||
// Load the assemblies from the loadedPlugins folder into the AppDomain
|
// Load the assemblies from the loadedPlugins folder into the AppDomain
|
||||||
LoadPluginAssemblies();
|
LoadPluginAssemblies();
|
||||||
|
|
||||||
@@ -422,7 +423,7 @@ namespace PepperDash.Essentials
|
|||||||
LoadCustomPluginTypes();
|
LoadCustomPluginTypes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user