implement noahc3's game trimming function

This commit is contained in:
Jakob 2018-07-03 12:38:15 +02:00
parent 511184ea04
commit 6745d9a91d
2 changed files with 28 additions and 0 deletions

View file

@ -105,6 +105,20 @@ namespace h_encore_auto
process.Start();
process.WaitForExit();
try
{
string path = Ref.tempDir + "app\\PCSG90096\\resource\\";
foreach (string k in Ref.trims)
{
Util.DeleteDirectory(path + k);
}
}
catch (Exception ex)
{
MessageBox.Show("Unexpected Exception: " + ex.Message);
return;
}
for (; ; )
{
Process[] pname = Process.GetProcessesByName("qcma");