1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-06-16 10:19:57 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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