mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-26 04:50:19 +00:00
Fixed the problem calling the c2w_patcher file
This commit is contained in:
parent
e75cd0f6ec
commit
b5c85b227d
1 changed files with 5 additions and 1 deletions
|
@ -350,18 +350,22 @@ namespace UWUVCI_AIO_WPF.UI.Frames.InjectFrames.Configurations
|
|||
File.Delete(imgFileCode);
|
||||
Directory.Delete(downloadPath, true);
|
||||
|
||||
var currentDir = Directory.GetCurrentDirectory();
|
||||
Directory.SetCurrentDirectory(c2wPath);
|
||||
using (Process c2w = new Process())
|
||||
{
|
||||
c2w.StartInfo.FileName = c2wFile;
|
||||
c2w.StartInfo.FileName = "c2w_patcher.exe";
|
||||
c2w.StartInfo.Arguments = $"-nc";
|
||||
c2w.Start();
|
||||
c2w.WaitForExit();
|
||||
}
|
||||
Directory.SetCurrentDirectory(currentDir);
|
||||
|
||||
File.Copy(System.IO.Path.Combine(c2wPath, "c2p.img"), imgFileCode);
|
||||
File.Delete(c2wFile);
|
||||
File.Delete(c2wPath + "\\starbuck_key.txt");
|
||||
File.Delete(System.IO.Path.Combine(c2wPath, "c2p.img"));
|
||||
File.Delete(imgFileCode);
|
||||
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue