mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-10 13:44:13 +00:00
Added in code to delete all of the extra stuff generated when disabling darkFilter
This commit is contained in:
parent
78ddb6c8f5
commit
c6cb5bb3b9
1 changed files with 18 additions and 1 deletions
|
@ -2139,10 +2139,27 @@ namespace UWUVCI_AIO_WPF
|
|||
|
||||
if (config.DarkFilter == false)
|
||||
{
|
||||
//my dumb af way to ensure everything starts fresh and doesn't throw an error
|
||||
try
|
||||
{
|
||||
Directory.Delete(Directory.GetCurrentDirectory() + @"\psbout", true);
|
||||
}
|
||||
catch { }
|
||||
try
|
||||
{
|
||||
File.Delete(Directory.GetCurrentDirectory() + @"\mod_alldata.psb.m");
|
||||
}
|
||||
catch { }
|
||||
try
|
||||
{
|
||||
File.Delete(Directory.GetCurrentDirectory() + @"\mod_alldata.bin");
|
||||
}
|
||||
catch { }
|
||||
|
||||
var packer = new MArchivePacker(new ZlibCodec(), "MX8wgGEJ2+M47", 80);
|
||||
AllDataPacker.UnpackFiles(allDataPath, "psbout", packer);
|
||||
|
||||
var lastModDirect = new DirectoryInfo("psbout").GetDirectories().OrderByDescending(d => d.LastWriteTimeUtc).FirstOrDefault();
|
||||
var lastModDirect = new DirectoryInfo("psbout").GetDirectories().OrderByDescending(d => d.LastWriteTimeUtc).LastOrDefault();
|
||||
|
||||
packer.DecompressFile(Directory.GetCurrentDirectory() + @"\psbout\" + lastModDirect + @"\config\title_prof.psb.m");
|
||||
AllDataPacker.Build("psbout", "mod_alldata", packer);
|
||||
|
|
Loading…
Reference in a new issue