diff --git a/Patcher/PatchClient/PatchClient.csproj b/Patcher/PatchClient/PatchClient.csproj
index ed2bdbf..5a22d0c 100644
--- a/Patcher/PatchClient/PatchClient.csproj
+++ b/Patcher/PatchClient/PatchClient.csproj
@@ -4,8 +4,8 @@
net8.0
true
enable
- 2.12.0
- 2.12.0
+ 2.15.0
+ 2.15.0
diff --git a/Patcher/PatchGenerator/PatchGenerator.csproj b/Patcher/PatchGenerator/PatchGenerator.csproj
index f70c910..f24e52d 100644
--- a/Patcher/PatchGenerator/PatchGenerator.csproj
+++ b/Patcher/PatchGenerator/PatchGenerator.csproj
@@ -4,8 +4,8 @@
net8.0
true
enable
- 2.12.0
- 2.12.0
+ 2.15.0
+ 2.15.0
diff --git a/Patcher/PatchGenerator/Resources/PatchClient.exe b/Patcher/PatchGenerator/Resources/PatchClient.exe
index 1cb26eb..1cdb24a 100644
Binary files a/Patcher/PatchGenerator/Resources/PatchClient.exe and b/Patcher/PatchGenerator/Resources/PatchClient.exe differ
diff --git a/Patcher/PatchGenerator/ViewModels/MainWindowViewModel.cs b/Patcher/PatchGenerator/ViewModels/MainWindowViewModel.cs
index 3394088..c55673e 100644
--- a/Patcher/PatchGenerator/ViewModels/MainWindowViewModel.cs
+++ b/Patcher/PatchGenerator/ViewModels/MainWindowViewModel.cs
@@ -23,7 +23,6 @@ namespace PatchGenerator.ViewModels
{
this.WhenActivated((CompositeDisposable disposables) =>
{
-
if (genArgs != null && genArgs.ReadyToRun)
{
PatchGenInfo genInfo = new PatchGenInfo();
@@ -31,7 +30,8 @@ namespace PatchGenerator.ViewModels
genInfo.TargetFolderPath = genArgs.TargetFolderPath;
genInfo.SourceFolderPath = genArgs.SourceFolderPath;
genInfo.PatchName = genArgs.OutputFolderName;
- genInfo.AutoZip = genArgs.AutoZip;
+ // issues with auto zip, but it's not really used anymore so just disabling for now
+ genInfo.AutoZip = false;
genInfo.AutoClose = genArgs.AutoClose;
Router.Navigate.Execute(new PatchGenerationViewModel(this, genInfo));
diff --git a/Patcher/PatchGenerator/ViewModels/PatchGenerationViewModel.cs b/Patcher/PatchGenerator/ViewModels/PatchGenerationViewModel.cs
index 1d83b55..0111c8b 100644
--- a/Patcher/PatchGenerator/ViewModels/PatchGenerationViewModel.cs
+++ b/Patcher/PatchGenerator/ViewModels/PatchGenerationViewModel.cs
@@ -14,9 +14,11 @@ using System.IO;
using System.Reactive.Disposables;
using System.Reflection;
using System.Text;
+using System.Threading;
using System.Threading.Tasks;
using System.Timers;
using PatcherUtils.Model;
+using Timer = System.Timers.Timer;
namespace PatchGenerator.ViewModels
{
@@ -112,15 +114,17 @@ namespace PatchGenerator.ViewModels
patchGenStopwatch.Start();
var message = patcher.GeneratePatches();
-
- if(message.ExitCode != PatcherExitCode.Success && generationInfo.AutoClose)
- {
- Environment.Exit((int)message.ExitCode);
- }
-
+
patchGenStopwatch.Stop();
updateElapsedTimeTimer.Stop();
+ if(message.ExitCode != PatcherExitCode.Success && generationInfo.AutoClose)
+ {
+ PatchLogger.LogInfo("Exiting: Auto close on failure");
+ Environment.Exit((int)message.ExitCode);
+ }
+
+ PatchLogger.LogInfo("Printing summary info ...");
PrintSummary();
StringBuilder sb = new StringBuilder()
@@ -132,30 +136,33 @@ namespace PatchGenerator.ViewModels
ProgressMessage = sb.ToString();
File.Copy(LazyOperations.PatcherClientPath, $"{generationInfo.PatchName.FromCwd()}\\patcher.exe", true);
-
- if (generationInfo.AutoZip)
- {
- IndeterminateProgress = true;
-
- PatchItemCollection.Add(new PatchItem("Allowing Time for files to unlock ..."));
-
- System.Threading.Thread.Sleep(2000);
-
- PatchItemCollection.Add(new PatchItem("Zipping patcher ..."));
-
- ProgressMessage = "Zipping patcher";
-
- IndeterminateProgress = false;
-
- var progress = new Progress(p =>
- {
- PatchPercent = p;
- });
-
- LazyOperations.CompressDirectory(generationInfo.PatchName.FromCwd(), $"{generationInfo.PatchName}.7z".FromCwd(), progress);
-
- PatchItemCollection.Add(new PatchItem("Done"));
- }
+
+ PatchLogger.LogInfo("Copied patcher.exe to output folder");
+
+ // if (generationInfo.AutoZip)
+ // {
+ // PatchLogger.LogInfo("AutoZipping");
+ // IndeterminateProgress = true;
+ //
+ // PatchItemCollection.Add(new PatchItem("Allowing Time for files to unlock ..."));
+ //
+ // Thread.Sleep(2000);
+ //
+ // PatchItemCollection.Add(new PatchItem("Zipping patcher ..."));
+ //
+ // ProgressMessage = "Zipping patcher";
+ //
+ // IndeterminateProgress = false;
+ //
+ // var progress = new Progress(p =>
+ // {
+ // PatchPercent = p;
+ // });
+ //
+ // LazyOperations.CompressDirectory(generationInfo.PatchName.FromCwd(), $"{generationInfo.PatchName}.7z".FromCwd(), progress);
+ //
+ // PatchItemCollection.Add(new PatchItem("Done"));
+ // }
if (generationInfo.AutoClose)
{
diff --git a/Patcher/PatchGenerator/Views/OptionsView.axaml b/Patcher/PatchGenerator/Views/OptionsView.axaml
index 68aa4e3..0accac1 100644
--- a/Patcher/PatchGenerator/Views/OptionsView.axaml
+++ b/Patcher/PatchGenerator/Views/OptionsView.axaml
@@ -15,9 +15,10 @@
Grid.Row="2" Grid.ColumnSpan="3"
Watermark="Output Folder Name"
/>
-
-
+
+
+
+
-
+