mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
lua: file library
This commit is contained in:
parent
74483dd385
commit
04a9c2045e
5 changed files with 147 additions and 39 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue