1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add core.get_dir_list

This commit is contained in:
ShadowNinja 2015-05-04 14:59:13 -04:00
parent 6c06330daf
commit 8f9af57314
7 changed files with 39 additions and 36 deletions

View file

@ -17,7 +17,7 @@
--------------------------------------------------------------------------------
function get_mods(path,retval,modpack)
local mods = core.get_dirlist(path, true)
local mods = core.get_dir_list(path, true)
for i=1, #mods, 1 do
if mods[i]:sub(1,1) ~= "." then
@ -94,7 +94,7 @@ function modmgr.getbasefolder(temppath)
}
end
local subdirs = core.get_dirlist(temppath,true)
local subdirs = core.get_dir_list(temppath, true)
--only single mod or modpack allowed
if #subdirs ~= 1 then