1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-09-04 11:58:01 +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:
LDDestroier
2023-09-30 15:49:39 -04:00
committed by GitHub
parent 7c9cd5460e
commit c2a186c3fd

View File

@@ -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