diff --git a/h-encore-auto/MainWindow.xaml.cs b/h-encore-auto/MainWindow.xaml.cs index a1d37fb..c292bb5 100644 --- a/h-encore-auto/MainWindow.xaml.cs +++ b/h-encore-auto/MainWindow.xaml.cs @@ -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"); diff --git a/h-encore-auto/ref.cs b/h-encore-auto/ref.cs index 1815a51..37b205e 100644 --- a/h-encore-auto/ref.cs +++ b/h-encore-auto/ref.cs @@ -13,5 +13,19 @@ namespace h_encore_auto public static readonly string url7za = "https://www.7-zip.org/a/7z1805-extra.7z"; public static readonly string tempDir = Path.GetTempPath() + @"encore_temp\"; + + public static readonly string[] trims = new string[] { + "movie\\", + "image\\bg\\", + "image\\ev\\", + "image\\icon\\", + "image\\stitle\\", + "image\\tachie\\", + "sound\\bgm\\", + "sound\\se\\", + "sound\\sec\\", + "sound\\voice\\", + "text\\01\\" + }; } }