Skip to content

Commit

Permalink
Add an additional check
Browse files Browse the repository at this point in the history
  • Loading branch information
theChaosCoder committed Jun 3, 2022
1 parent c135fc5 commit 7ed2565
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion VSRepoGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,16 @@ private void InitVapoursynth()
AppIsWorking(true);
vsrepo.SetArch(Environment.Is64BitOperatingSystem);
//Trigger GetPaths for 32/64 bit, they are cached in VsApi class anyway
_ = vsrepo.GetPaths(true).Definitions; _ = vsrepo.GetPaths(false).Definitions;
try
{
_ = vsrepo.GetPaths(true).Definitions; _ = vsrepo.GetPaths(false).Definitions;
}
catch
{
MessageBox.Show("GetPaths() failed. Could be a missing/broken vspackages3.json.");
System.Environment.Exit(1);
}

vspackages_file = vsrepo.GetPaths(Environment.Is64BitOperatingSystem).Definitions;
//Win64 = Environment.Is64BitOperatingSystem;
Console.WriteLine("vspackages_file: " + vsrepo_file);
Expand Down

0 comments on commit 7ed2565

Please sign in to comment.