Lua Console - on drag and drop, don't be case sensitive with the file extension
This commit is contained in:
parent
16896dc858
commit
96b626434f
|
@ -1018,12 +1018,12 @@ namespace BizHawk.Client.EmuHawk
|
||||||
{
|
{
|
||||||
foreach (var path in filePaths)
|
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);
|
LoadLuaFile(path);
|
||||||
UpdateDialog();
|
UpdateDialog();
|
||||||
}
|
}
|
||||||
else if (Path.GetExtension(path) == ".luases")
|
else if (Path.GetExtension(path).ToLower() == ".luases")
|
||||||
{
|
{
|
||||||
_luaList.LoadLuaSession(path);
|
_luaList.LoadLuaSession(path);
|
||||||
RunLuaScripts();
|
RunLuaScripts();
|
||||||
|
|
Loading…
Reference in New Issue