mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-23 23:46:53 +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
|
-- tape managing program
|
||||||
-- made by LDDestroier
|
-- made by LDDestroier
|
||||||
|
|
||||||
local _DEBUG = true
|
local _DEBUG = false
|
||||||
|
|
||||||
local function checkOption(argName, argInfo, isShort)
|
local function checkOption(argName, argInfo, isShort)
|
||||||
for i = 1, #argInfo do
|
for i = 1, #argInfo do
|
||||||
@ -350,6 +350,9 @@ if fileName:sub(1,8) == "https://" then
|
|||||||
success, contents = getFileContents(fileName, true)
|
success, contents = getFileContents(fileName, true)
|
||||||
print("Done.")
|
print("Done.")
|
||||||
else
|
else
|
||||||
|
if not fs.exists(fileName) then
|
||||||
|
fileName = fileName .. ".dfpwm"
|
||||||
|
end
|
||||||
success, contents = getFileContents(fileName, false)
|
success, contents = getFileContents(fileName, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user