call WhackMOTW on .exe, besides just .dll. Fixes bug with windows prompting to allow execution of bsnes executables

This commit is contained in:
zeromus 2014-11-06 19:04:51 +00:00
parent fa8934b1d4
commit 9f3763409b
2 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,8 @@ namespace BizHawk.Client.DiscoHawk
foreach (var disub in di.GetDirectories()) todo.Enqueue(disub);
foreach (var fi in di.GetFiles("*.dll"))
RemoveMOTW(fi.FullName);
foreach (var fi in di.GetFiles("*.exe"))
RemoveMOTW(fi.FullName);
}
}

View File

@ -203,6 +203,8 @@ namespace BizHawk.Client.EmuHawk
foreach (var disub in di.GetDirectories()) todo.Enqueue(disub);
foreach (var fi in di.GetFiles("*.dll"))
RemoveMOTW(fi.FullName);
foreach (var fi in di.GetFiles("*.exe"))
RemoveMOTW(fi.FullName);
}
}