lua console - fix a few other places where not having an association with .lua will throw an exception

This commit is contained in:
adelikat 2019-10-04 12:09:23 -05:00
parent 80150f70be
commit 3c0b793d97
1 changed files with 10 additions and 2 deletions

View File

@ -817,7 +817,11 @@ namespace BizHawk.Client.EmuHawk
File.WriteAllText(sfd.FileName, defaultTemplate);
LuaImp.ScriptList.Add(new LuaFile(Path.GetFileNameWithoutExtension(sfd.FileName), sfd.FileName));
UpdateDialog();
Process.Start(sfd.FileName);
Process.Start(new ProcessStartInfo
{
Verb = "Open",
FileName = sfd.FileName
});
}
}
@ -975,7 +979,11 @@ namespace BizHawk.Client.EmuHawk
File.WriteAllText(sfd.FileName, text);
LuaImp.ScriptList.Add(new LuaFile(Path.GetFileNameWithoutExtension(sfd.FileName), sfd.FileName));
UpdateDialog();
Process.Start(sfd.FileName);
Process.Start(new ProcessStartInfo
{
Verb = "Open",
FileName = sfd.FileName
});
}
}
}