From c2a186c3fd3403d49f6c2dd3b7b08352d6047a94 Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Sat, 30 Sep 2023 15:49:39 -0400 Subject: [PATCH] Update mtape.lua Added ".dfpwm" concatenation to the fileName parameter if it can't find what you've entered without it --- mtape.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mtape.lua b/mtape.lua index 342eb07..72ab757 100644 --- a/mtape.lua +++ b/mtape.lua @@ -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