Subscribe to CurrentDomain.AssemblyResolve on Unix

This is so DLLs not in the executing directory can be found without having to
copy to local, i.e. Nlua.dll and KopiLua.dll --Asnivor
This commit is contained in:
YoshiRulz 2019-10-06 16:22:05 +10:00
parent 357cdf5df7
commit 3c8c761cca
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,11 @@ namespace BizHawk.Client.EmuHawk
//We need to do it here too... otherwise people get exceptions when externaltools we distribute try to startup
}
else
{
// for Unix, skip everything else and just wire up the event handler
AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;
}
}
[STAThread]