From 96b626434f95ac9b7c807b4c6abd15236785098d Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 26 Nov 2014 17:42:30 +0000 Subject: [PATCH] Lua Console - on drag and drop, don't be case sensitive with the file extension --- BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs index aedd9a5c0f..a76dda02f7 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs @@ -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();