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:
zeromus 2015-11-07 12:05:26 -06:00
parent 5c16f8b107
commit cbdf6a2acc
1 changed files with 2 additions and 2 deletions

View File

@ -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);