after i fix a regression from a couple of commits ago which broke multi-instance dlls (affecting only bsnes otherwise right now)
This commit is contained in:
parent
5c16f8b107
commit
cbdf6a2acc
|
@ -21,9 +21,9 @@ namespace BizHawk.Common
|
|||
var envpath = Environment.GetEnvironmentVariable("PATH", EnvironmentVariableTarget.Process);
|
||||
try
|
||||
{
|
||||
string envpath_new = Path.GetDirectoryName(dllPath) + ";" + envpath;
|
||||
string envpath_new = Path.GetDirectoryName(path) + ";" + envpath;
|
||||
Environment.SetEnvironmentVariable("PATH", envpath_new, EnvironmentVariableTarget.Process);
|
||||
_hModule = LoadLibrary(dllPath); //consider using LoadLibraryEx instead of shenanigans?
|
||||
_hModule = LoadLibrary(path); //consider using LoadLibraryEx instead of shenanigans?
|
||||
var newfname = Path.GetFileName(path);
|
||||
newfname = "bizhawk.bizdelete-" + newfname;
|
||||
var newpath = Path.Combine(Path.GetDirectoryName(path), newfname);
|
||||
|
|
Loading…
Reference in New Issue