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; this.DestinationFolder = DestinationFolder;
} }
public bool Start(bool IgnoreIfExists = false) public bool Start(bool IgnoreIfExists = false, bool merge = false)
{ {
DirectoryInfo sourceDir = new DirectoryInfo(SourceFolder); DirectoryInfo sourceDir = new DirectoryInfo(SourceFolder);
DirectoryInfo destDir = new DirectoryInfo(DestinationFolder); DirectoryInfo destDir = new DirectoryInfo(DestinationFolder);
@ -33,7 +33,7 @@ namespace EftPatchHelper.Helpers
AnsiConsole.MarkupLine("[yellow]Exists[/]"); AnsiConsole.MarkupLine("[yellow]Exists[/]");
return true; return true;
} }
else else if(!merge)
{ {
if (!AnsiConsole.Confirm($"{destDir.FullName} exists. Do you want to overwright it?", false)) 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 class Options
{ {
public bool IgnoreExistingDirectories = true; public bool IgnoreExistingDirectories = false;
public EftClient TargetClient = null; public EftClient TargetClient = null;
public EftClient SourceClient = null; public EftClient SourceClient = null;
public string OutputPatchPath = null;
} }
} }

View File

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

View File

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