mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
Add unsafe dll load option
ilmerging assemblies somehow ignores the loadFromRemoteSources app setting, so allow the compiler (user) to specify that the main app should ignore those security checks.
This commit is contained in:
parent
5f2f295541
commit
2b9a105e36
1 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,11 @@ namespace PKHeX.WinForms
|
|||
}
|
||||
private static IEnumerable<Assembly> GetAssemblies(IEnumerable<string> dllFileNames)
|
||||
{
|
||||
return dllFileNames.Select(AssemblyName.GetAssemblyName).Select(Assembly.Load);
|
||||
#if UNSAFEDLL
|
||||
return dllFileNames.Select(Assembly.UnsafeLoadFrom);
|
||||
#else
|
||||
return dllFileNames.Select(Assembly.LoadFrom);
|
||||
#endif
|
||||
}
|
||||
private static IEnumerable<Type> GetPluginsOfType<T>(IEnumerable<Assembly> assemblies)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue