This commit is contained in:
sin365 2023-10-04 15:37:18 +08:00
parent 5e69b4efa6
commit 4174d8916c

View File

@ -17,7 +17,7 @@ namespace MHFNoGG
static void Main(string[] args) static void Main(string[] args)
{ {
Console.WriteLine("按下回车结束"); Console.WriteLine("按下回车启动MHF并干掉GG。Press Enter, Run mhf.exe with Fix GG by axibug.com");
Console.ReadLine(); Console.ReadLine();
string path = Directory.GetCurrentDirectory(); string path = Directory.GetCurrentDirectory();
@ -29,7 +29,8 @@ namespace MHFNoGG
uint pid = 0; uint pid = 0;
try try
{ {
pid = device.Spawn(path + "\\mhf.exe", new string[] { path + "\\mhf.exe", ""}, new string[] { }, new string[] { }, ""); //pid = device.Spawn(path + "\\mhf.exe", new string[] { path + "\\mhf.exe", ""}, new string[] { }, new string[] { }, "");
pid = device.Spawn("mhf.exe", new string[] { path + "mhf.exe", "" }, new string[] { }, new string[] { }, "");
} }
catch (Exception ex) catch (Exception ex)
{ {