added patch gen and patch testing
This commit is contained in:
parent
21bc6e2e4a
commit
1c5a668e78
@ -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))
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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; } = "";
|
||||
|
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user