Lua Console - on drag and drop, don't be case sensitive with the file extension

This commit is contained in:
adelikat 2014-11-26 17:42:30 +00:00
parent 16896dc858
commit 96b626434f
1 changed files with 2 additions and 2 deletions

View File

@ -1018,12 +1018,12 @@ namespace BizHawk.Client.EmuHawk
{
foreach (var path in filePaths)
{
if (Path.GetExtension(path) == ".lua" || Path.GetExtension(path) == ".txt")
if (Path.GetExtension(path).ToLower() == ".lua" || Path.GetExtension(path).ToLower() == ".txt")
{
LoadLuaFile(path);
UpdateDialog();
}
else if (Path.GetExtension(path) == ".luases")
else if (Path.GetExtension(path).ToLower() == ".luases")
{
_luaList.LoadLuaSession(path);
RunLuaScripts();