mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
Merge branch 'master' of https://github.com/KillzXGaming/Switch-Toolbox
This commit is contained in:
commit
07692c9678
1 changed files with 5 additions and 1 deletions
|
@ -90,8 +90,12 @@ namespace Updater
|
|||
|
||||
string dirName = new DirectoryInfo(dir).Name;
|
||||
|
||||
if (Directory.Exists(Path.Combine(folderDir, dirName + @"\")))
|
||||
if (!dirName.Equals("Hashes", StringComparison.CurrentCultureIgnoreCase) // Let's keep the users custom hashes in tact
|
||||
&& Directory.Exists(Path.Combine(folderDir, dirName + @"\")))
|
||||
{
|
||||
Directory.Delete(Path.Combine(folderDir, dirName + @"\"), true);
|
||||
}
|
||||
|
||||
Directory.Move(dir, Path.Combine(folderDir, dirName + @"\"));
|
||||
}
|
||||
foreach (string file in Directory.GetFiles("master/"))
|
||||
|
|
Loading…
Reference in a new issue