Skip to content

Commit

Permalink
Main: Ensure we load JSON and set game path before checking when running
Browse files Browse the repository at this point in the history
in CLI
  • Loading branch information
trotlinebeercan committed Apr 17, 2021
1 parent bd91e82 commit ec6d879
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ChipLauncher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ private void MainWindow_Loaded(object sender, RoutedEventArgs e)
this.Hide();
btn_ShowAdvanced_Click(null, null);

string jsonStr = File.ReadAllText(args[1]);
LoadInputFromJson(jsonStr);

if (!CheckAndSetGamePath())
{
App.Current.Shutdown();
return;
}

string jsonStr = File.ReadAllText(args[1]);
LoadInputFromJson(jsonStr);
Login(CreateCharacterFromInput());
}
});
Expand Down

0 comments on commit ec6d879

Please sign in to comment.