3 Commits
Author SHA1 Message Date
Radio f32310d05e v1.2.1 2022-04-28 17:06:28 +02:00
Radio 29f7ff3c3b Update README.md 2022-03-24 19:27:58 +01:00
Radio da502b93b1 Update README.md 2022-03-24 19:20:16 +01:00
3 changed files with 10 additions and 8 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
# WPFLinkTool
WPF MVVM version of my link tool, faster, better, stronger.
If you used my old versions, your xml instances won't load but your DB folder will be compatible.
Just use the old tools to make links somewhere and add them as instances (copy files) using the WPF version.
The main purpose of this tool is to save disk space for AC data (can use it for anything but that was the main goal).
You add your games' `data` folder as an instance, then the tool will calculate the MD5 hash of each file and store it in its `DB` folder along with storing each file's location inside the `data` folder (ex. (`\sound\`, `\movie\`). Each new instance will only add unique files to the `DB`.
Then you can link your instance to wherever you want and stop copying large amounts of data.
![screenshot](https://stn.s-ul.eu/WSjdB3am.png)
![screenshot](https://stn.s-ul.eu/UgeNvAoD.png)
@@ -48,7 +48,7 @@ namespace WPFLinkTool
foreach (var file in dBFiles)
{
await Task.Run(() => File.Delete(dbDir + @"\" + file));
vm.Loggerr.Log($"Deleting {file}");
//vm.Loggerr.Log($"Deleting {file}");
vm.Progress += progressStep;
}
}
@@ -43,12 +43,14 @@ namespace WPFLinkTool
{
if (File.Exists(target + file.Location + @"\" + file.OriginalFileName))
{
vm.Loggerr.Log(@$"Deleting {target + file.Location + @"\" + file.OriginalFileName}");
//vm.Loggerr.Log(@$"Deleting {target + file.Location + @"\" + file.OriginalFileName}");
File.Delete(target + file.Location + @"\" + file.OriginalFileName);
}
}
}
vm.Loggerr.Log("Linking...");
if (proceed)
{
var uniqueFolders = (from folders in vm.SelectedInstance.InstanceFiles
@@ -61,7 +63,7 @@ namespace WPFLinkTool
{
if (!Directory.Exists(target + folder))
{
vm.Loggerr.Log($@"Creating directory {target + folder}");
//vm.Loggerr.Log($@"Creating directory {target + folder}");
await Task.Run(() => Directory.CreateDirectory(target + folder));
}
vm.Progress += progressStep;
@@ -71,7 +73,7 @@ namespace WPFLinkTool
{
if (!File.Exists(target + file.Location + @"\" + file.OriginalFileName))
{
vm.Loggerr.Log($@"Linking {target + file.Location + @"\" + file.OriginalFileName}");
//vm.Loggerr.Log($@"Linking {target + file.Location + @"\" + file.OriginalFileName}");
await Task.Run(() => CreateHardLink(target + file.Location + @"\" + file.OriginalFileName,
dbDir + @"\" + file.HashedFileName, IntPtr.Zero));
}