diff --git a/patch/lua/patch-wad.lua b/patch/lua/patch-wad.lua index a278c918..60d48b35 100644 --- a/patch/lua/patch-wad.lua +++ b/patch/lua/patch-wad.lua @@ -3,6 +3,9 @@ if #arg < 1 then print("usage: `patch-wad ` " .. "(or drag and drop a wad onto the patch script)") local line = io.read() + if line ~= nil and line:sub(1, 1) == "\"" and line:sub(-1, -1) == "\"" then + line = line:sub(2, -2) + end if line == nil or line == "" then return end arg[1] = line end diff --git a/patch/lua/patch.lua b/patch/lua/patch.lua index a6626e5c..136a27dd 100644 --- a/patch/lua/patch.lua +++ b/patch/lua/patch.lua @@ -3,6 +3,9 @@ if #arg < 1 then print("usage: `patch ` " .. "(or drag and drop a rom onto the patch script)") local line = io.read() + if line ~= nil and line:sub(1, 1) == "\"" and line:sub(-1, -1) == "\"" then + line = line:sub(2, -2) + end if line == nil or line == "" then return end arg[1] = line end