lua: file library

This commit is contained in:
MihailRis
2024-01-25 16:04:02 +03:00
parent 74483dd385
commit 04a9c2045e
5 changed files with 147 additions and 39 deletions
+1 -2
View File
@@ -31,8 +31,7 @@ end
-- nocache - ignore cached script, load anyway
function load_script(path, nocache)
local packname, filename = parse_path(path)
local packpath = pack.get_folder(packname)
local fullpath = packpath..filename
local fullpath = file.resolve(path);
-- __cached_scripts used in condition because cached result may be nil
if not nocache and __cached_scripts[fullpath] ~= nil then