Guareded load
This commit is contained in:
parent
65991b5062
commit
2eb3878fa7
|
@ -295,7 +295,11 @@ local function load_quad_data (filename)
|
|||
|
||||
local chunk, error_msg
|
||||
if define_love then
|
||||
chunk, error_msg = love.filesystem.load(filename..filetype)
|
||||
if love.filesystem.exists(filename..filetype) then
|
||||
chunk, error_msg = love.filesystem.load(filename..filetype)
|
||||
else
|
||||
chunk, error_msg = nil, 'Does not exist'
|
||||
end
|
||||
else
|
||||
chunk, error_msg = loadfile(filename..filetype)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user