mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-07 07:50:26 +00:00
Update mtape.lua
Added ".dfpwm" concatenation to the fileName parameter if it can't find what you've entered without it
This commit is contained in:
parent
7c9cd5460e
commit
c2a186c3fd
@ -2,7 +2,7 @@
|
||||
-- tape managing program
|
||||
-- made by LDDestroier
|
||||
|
||||
local _DEBUG = true
|
||||
local _DEBUG = false
|
||||
|
||||
local function checkOption(argName, argInfo, isShort)
|
||||
for i = 1, #argInfo do
|
||||
@ -350,6 +350,9 @@ if fileName:sub(1,8) == "https://" then
|
||||
success, contents = getFileContents(fileName, true)
|
||||
print("Done.")
|
||||
else
|
||||
if not fs.exists(fileName) then
|
||||
fileName = fileName .. ".dfpwm"
|
||||
end
|
||||
success, contents = getFileContents(fileName, false)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user