Ignore .name directories and files
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
This commit is contained in:
parent
9806ede6a3
commit
e98bb3edcc
|
@ -17,9 +17,10 @@
|
|||
|
||||
--------------------------------------------------------------------------------
|
||||
function get_mods(path,retval,modpack)
|
||||
local mods = core.get_dirlist(path, true)
|
||||
|
||||
local mods = core.get_dirlist(path,true)
|
||||
for i=1,#mods,1 do
|
||||
for i=1, #mods, 1 do
|
||||
if mods[i]:sub(1,1) ~= "." then
|
||||
local toadd = {}
|
||||
local modpackfile = nil
|
||||
|
||||
|
@ -43,6 +44,7 @@ function get_mods(path,retval,modpack)
|
|||
table.insert(retval,toadd)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--modmanager implementation
|
||||
|
|
|
@ -31,12 +31,14 @@ local function render_texture_pack_list(list)
|
|||
local retval = ""
|
||||
|
||||
for i, v in ipairs(list) do
|
||||
if v:sub(1,1) ~= "." then
|
||||
if retval ~= "" then
|
||||
retval = retval ..","
|
||||
end
|
||||
|
||||
retval = retval .. core.formspec_escape(v)
|
||||
end
|
||||
end
|
||||
|
||||
return retval
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue