1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Skip hash directory for updater

This commit is contained in:
KillzXGaming 2023-06-13 18:23:10 -04:00
parent feea29f3be
commit 9e87a5ce2a

View File

@ -91,8 +91,11 @@ namespace Updater
string dirName = new DirectoryInfo(dir).Name; string dirName = new DirectoryInfo(dir).Name;
string destDir = Path.Combine(folderDir, dirName + @"\"); string destDir = Path.Combine(folderDir, dirName + @"\");
if (!dirName.Equals("Hashes", StringComparison.CurrentCultureIgnoreCase) // Let's keep the users custom hashes in tact //Skip hash directory
&& Directory.Exists(destDir)) if (dirName.Equals("Hashes", StringComparison.CurrentCultureIgnoreCase))
continue;
if (Directory.Exists(destDir))
{ {
Directory.Delete(destDir, true); Directory.Delete(destDir, true);
} }