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.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)
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue