Assumed the path will have vWii in it's name

This commit is contained in:
ZestyTS 2022-08-28 09:44:24 -07:00
parent bc5a1fc5d8
commit 0f2b1acb8e

View file

@ -514,7 +514,7 @@ namespace UWUVCI_AIO_WPF
var p = new Process();
var fileName = Application.ResourceAssembly.Location;
foreach (var file in Directory.GetFiles(Directory.GetCurrentDirectory(), "*.exe"))
if (!Path.GetFileName(file).Contains(Path.GetFileNameWithoutExtension(fileName)))
if (Path.GetFileName(file).Contains("vWii"))
{
fileName = file;
break;