chore(assets/containers): style fixes

This commit is contained in:
Kazhnuz 2024-10-30 11:04:52 +01:00
parent aafdfc924b
commit a93084a930

View file

@ -30,7 +30,7 @@ function AssetContainer:new(assetType, checkFor, loader, preload)
self.loader = loader self.loader = loader
self.pathes = {} self.pathes = {}
self.list = {} self.list = {}
self:scanFolder(folder, parent) self:scanFolder(nil, nil)
end end
function AssetContainer:scanFolder(folder, parent) function AssetContainer:scanFolder(folder, parent)
@ -40,7 +40,7 @@ function AssetContainer:scanFolder(folder, parent)
local path = prefix .. "/" .. folder local path = prefix .. "/" .. folder
files = love.filesystem.getDirectoryItems( path ) local files = love.filesystem.getDirectoryItems( path )
for i, file in ipairs(files) do for i, file in ipairs(files) do
local filepath = path .. file local filepath = path .. file