love.filesystem.load
Load a file (but not run it)
Contents
Function
Synopsis
chunk = love.filesystem.load( name )
Arguments
string name
- The name (and path) of the file
Returns
function chunk
- The loaded chunk
Examples
Execute everything in the folder "levels"
for i, file in love.filesystem.enumerate("levels") do
love.filesystem.load("levels/" .. file)() -- last pair of parentheses runs it
end