added patch gen and patch testing

This commit is contained in:
IsWaffle 2022-05-25 20:55:01 -04:00
parent 21bc6e2e4a
commit 1c5a668e78
4 changed files with 10 additions and 9 deletions

View File

@ -18,7 +18,7 @@ namespace EftPatchHelper.Helpers
this.DestinationFolder = DestinationFolder;
}
public bool Start(bool IgnoreIfExists = false)
public bool Start(bool IgnoreIfExists = false, bool merge = false)
{
DirectoryInfo sourceDir = new DirectoryInfo(SourceFolder);
DirectoryInfo destDir = new DirectoryInfo(DestinationFolder);
@ -33,7 +33,7 @@ namespace EftPatchHelper.Helpers
AnsiConsole.MarkupLine("[yellow]Exists[/]");
return true;
}
else
else if(!merge)
{
if (!AnsiConsole.Confirm($"{destDir.FullName} exists. Do you want to overwright it?", false))
{

View File

@ -4,8 +4,9 @@ namespace EftPatchHelper.Model
{
public class Options
{
public bool IgnoreExistingDirectories = true;
public bool IgnoreExistingDirectories = false;
public EftClient TargetClient = null;
public EftClient SourceClient = null;
public string OutputPatchPath = null;
}
}

View File

@ -25,7 +25,7 @@ namespace EftPatchHelper.Model
public bool AutoZip { get; set; } = true;
[JsonPropertyName("autoClose")]
public bool AutoClose { get; set; } = false;
public bool AutoClose { get; set; } = true;
[JsonPropertyName("patcherExePath")]
public string PatcherEXEPath { get; set; } = "";

View File

@ -1,9 +1,9 @@
{
"targetEftVersion": "C:\\users\\johno\\desktop\\tmp",
"prepFolderPath": "C:\\users\\johno\\desktop\\tmp",
"backupFolderPath": "C:\\users\\johno\\desktop\\tmp",
"liveEftPath": "C:\\users\\johno\\desktop\\tmp",
"patcherExePath": "C:\\users\\johno\\desktop\\tmp",
"targetEftVersion": "",
"prepFolderPath": "",
"backupFolderPath": "",
"liveEftPath": "",
"patcherExePath": "",
"autoZip": true,
"autoClose": false
}