From 7d780d1954d18cad6787d51913c511ad014ef090 Mon Sep 17 00:00:00 2001 From: James Groom Date: Fri, 1 Nov 2019 12:56:44 +1100 Subject: [PATCH] Un-delete ReflectionOnlyAssemblyResolve subscriber --- BizHawk.Client.EmuHawk/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BizHawk.Client.EmuHawk/Program.cs b/BizHawk.Client.EmuHawk/Program.cs index f05542abb8..9310598a7e 100644 --- a/BizHawk.Client.EmuHawk/Program.cs +++ b/BizHawk.Client.EmuHawk/Program.cs @@ -77,6 +77,9 @@ namespace BizHawk.Client.EmuHawk // for Unix, skip everything else and just wire up the event handler 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]