Skip to content

Commit

Permalink
Fixed: Failed to Complete Sanity Tests when Target EXE Not Exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jul 27, 2021
1 parent 99a05a9 commit 762badb
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions source/Reloaded.Mod.Launcher/Setup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,26 +222,30 @@ private static void DoSanityTests()
new IncompatibleModDialog(incompatible, app).ShowDialog();
// Bootstrapper Update
var deployer = new AsiLoaderDeployer(app);
var bootstrapperInstallPath = deployer.GetBootstrapperInstallPath(out _);
if (!File.Exists(bootstrapperInstallPath))
continue;
var updater = new BootstrapperUpdateChecker(bootstrapperInstallPath);
try
{
if (!updater.NeedsUpdate())
var deployer = new AsiLoaderDeployer(app);
var bootstrapperInstallPath = deployer.GetBootstrapperInstallPath(out _);
if (!File.Exists(bootstrapperInstallPath))
continue;
}
catch (Exception e) { /* ignored */ }
var bootstrapperSourcePath = deployer.GetBootstrapperDllPath();
try
{
File.Copy(bootstrapperSourcePath, bootstrapperInstallPath, true);
updatedBootstrappers.Add(app.Config.AppName);
var updater = new BootstrapperUpdateChecker(bootstrapperInstallPath);
try
{
if (!updater.NeedsUpdate())
continue;
}
catch (Exception e) { /* ignored */ }
var bootstrapperSourcePath = deployer.GetBootstrapperDllPath();
try
{
File.Copy(bootstrapperSourcePath, bootstrapperInstallPath, true);
updatedBootstrappers.Add(app.Config.AppName);
}
catch (Exception e) { /* ignored */ }
}
catch (Exception e) { /* ignored */ }
catch (Exception e) { /* ignored */ }
}
if (updatedBootstrappers.Count > 0)
Expand Down

0 comments on commit 762badb

Please sign in to comment.