Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removing redundancy
  • Loading branch information
Clownacy committed May 11, 2015
1 parent 5ef8527 commit 45f761c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SonLVL/MainForm.cs
Expand Up @@ -754,11 +754,11 @@ private void buildAndRunToolStripMenuItem_Click(object sender, EventArgs e)
string romfile = LevelData.Game.ROMFile ?? LevelData.Game.RunCommand;
if (LevelData.Game.UseEmulator)
if (!string.IsNullOrEmpty(Settings.Emulator))
System.Diagnostics.Process.Start(Settings.Emulator, '"' + Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, romfile)) + '"');
System.Diagnostics.Process.Start(Settings.Emulator, '"' + Path.GetFullPath(romfile) + '"');
else
MessageBox.Show("You must set up an emulator before you can run the ROM, use File -> Setup Emulator.");
else
System.Diagnostics.Process.Start(Path.GetFullPath(Path.Combine(Environment.CurrentDirectory, romfile)));
System.Diagnostics.Process.Start(Path.GetFullPath(romfile));
}

private void setupEmulatorToolStripMenuItem_Click(object sender, EventArgs e)
Expand Down

0 comments on commit 45f761c

Please sign in to comment.