Skip to content

Commit

Permalink
Merge pull request #625 from TheTrackerCouncil/add-launch-error-popup
Browse files Browse the repository at this point in the history
Fix crash when with invalid launch applications
  • Loading branch information
MattEqualsCoder authored Dec 18, 2024
2 parents 701dc8d + daa2df3 commit 325afdd
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,17 @@ public void PlayRom(GeneratedRom? rom)
return;
}

romLauncherService.LaunchRom(rom);
try
{
romLauncherService.LaunchRom(rom);
}
catch (Exception e)
{
logger.LogError(e, "Could not launch rom");
DisplayError(
"There was an issue launching the rom. Make sure the rom file still exists and that you have a valid application set to launch roms in either the randomizer options or your operating system.");
}

}

public void OpenFolder(GeneratedRom? rom)
Expand Down

0 comments on commit 325afdd

Please sign in to comment.