Now creating symlinks to Songs and Skins Folder, copying collection and scores db to the EZPPClient dir

This commit is contained in:
2021-05-25 17:59:35 +02:00
parent 505fe6f8e2
commit dca56f330f
3 changed files with 200 additions and 14 deletions

View File

@@ -50,6 +50,9 @@ namespace EZPPClient_Installer
if (!directoryExists)
{
#if DEBUG
MessageBox.Show("Folder does not exist: " + pathToEZPP);
#endif
foreach (MD5File md5File in md5Files)
downloadList.Add(md5File.getName());
}
@@ -67,6 +70,9 @@ namespace EZPPClient_Installer
{
string onlineHash = md5file.getMD5();
string pcHash = MD5Util.CalculateMD5(file);
#if DEBUG
MessageBox.Show("Filename: " + md5file.getName() + "\nOnline-Hash: " + onlineHash + "\n PC-Hash: " + pcHash);
#endif
if (!string.Equals(onlineHash, pcHash))
{
downloadList.Add(md5file.getName());
@@ -86,7 +92,11 @@ namespace EZPPClient_Installer
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
foreach(string filename in files)
foreach(string file in files)
if (File.Exists(path + @"\" + file))
File.Delete(path + @"\" + file);
foreach (string filename in files)
{
await DownloadFile(filename, path);