Skip to content

Commit

Permalink
Fix no emulator path being set not being detected when trying to Buil…
Browse files Browse the repository at this point in the history
…d & Run (#199)
  • Loading branch information
WiIIiam278 authored Jun 13, 2023
1 parent 91da8ca commit 14c4e1d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/SerialLoops/MainForm.eto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -727,11 +727,12 @@ private void BuildAndRunProject_Executed(object sender, EventArgs e)
{
if (OpenProject is not null)
{
if (CurrentConfig.EmulatorPath is null)
if (string.IsNullOrWhiteSpace(CurrentConfig.EmulatorPath))
{
MessageBox.Show("No emulator path set. Please set the path to your emulator.", "No Emulator Path",
MessageBoxType.Warning);
Log.LogWarning("No emulator path set. Please set the path to your emulator.");
MessageBox.Show("No emulator path has been set.\nPlease set the path to a Nintendo DS emulator in Preferences to use Build & Run.",
"No Emulator Path", MessageBoxType.Warning);
Log.LogWarning("Attempted to build and run project while no emulator path was set.");
PreferencesCommand_Executed(sender, e);
return;
}

Expand Down

0 comments on commit 14c4e1d

Please sign in to comment.