implement noahc3's game trimming function
This commit is contained in:
parent
511184ea04
commit
6745d9a91d
2 changed files with 28 additions and 0 deletions
|
@ -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");
|
||||
|
|
|
@ -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\\"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue