Lua console - don't throw exception when opening a .lua file if the user has not associated a .lua file with an application. Fixes #1683

This commit is contained in:
adelikat 2019-10-04 11:52:46 -05:00
parent 71527da3ed
commit cf6c8c6dde
1 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Drawing; using System.Drawing;
using System.Diagnostics;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
@ -936,8 +937,11 @@ namespace BizHawk.Client.EmuHawk
{ {
SelectedFiles.ToList().ForEach(file => SelectedFiles.ToList().ForEach(file =>
{ {
string pathToLoad = ProcessPath(file.Path); Process.Start(new ProcessStartInfo
System.Diagnostics.Process.Start(pathToLoad); {
Verb = "Open",
FileName = ProcessPath(file.Path)
});
}); });
} }