From a8a5152f2db32b2b3c0e247af9a267aec0acca96 Mon Sep 17 00:00:00 2001 From: Avril112113 Date: Sun, 5 May 2024 16:58:45 +0100 Subject: [PATCH] Fixed not finding `/../SelenScript` *Only affected development* --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 6b0a578..3681b02 100644 --- a/main.lua +++ b/main.lua @@ -5,7 +5,7 @@ local TOOL_PATH = MAIN_PATH:find("[\\/]") and MAIN_PATH:gsub("[\\/][^\\/]*$", "" local SELENSCRIPT_PATH_LOCAL = "SelenScript" do -- Directory existence check, works on Windows and Linux - local f, _, code = io.open("../SelenScript", "r") + local f, _, code = io.open(TOOL_PATH .. "/../SelenScript", "r") if code == 13 or (f and select(3, f:read()) == 21) then if f then f:close() end SELENSCRIPT_PATH_LOCAL = "../SelenScript"