Un-delete ReflectionOnlyAssemblyResolve subscriber

This commit is contained in:
James Groom 2019-11-01 12:56:44 +11:00 committed by GitHub
parent c6dff68981
commit 7d780d1954
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ namespace BizHawk.Client.EmuHawk
// for Unix, skip everything else and just wire up the event handler // for Unix, skip everything else and just wire up the event handler
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
} }
// Assembly.ReflectionOnlyLoadFrom doesn't automatically load deps, this stops it from throwing when called
AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += (sender, args) => Assembly.ReflectionOnlyLoad(args.Name);
} }
[STAThread] [STAThread]