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:
parent
71527da3ed
commit
cf6c8c6dde
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
|
@ -936,8 +937,11 @@ namespace BizHawk.Client.EmuHawk
|
|||
{
|
||||
SelectedFiles.ToList().ForEach(file =>
|
||||
{
|
||||
string pathToLoad = ProcessPath(file.Path);
|
||||
System.Diagnostics.Process.Start(pathToLoad);
|
||||
Process.Start(new ProcessStartInfo
|
||||
{
|
||||
Verb = "Open",
|
||||
FileName = ProcessPath(file.Path)
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue