added support for LÖVE 11.3

This commit is contained in:
usysrc 2020-01-28 21:31:15 -05:00 committed by GitHub
parent 2515030a95
commit 74a8c86c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,9 @@ local function load()
end end
local function update(dt) local function update(dt)
if love.filesystem.exists(lick.file) and last_modified < love.filesystem.getLastModified(lick.file) then local info = love.filesystem.getInfo(lick.file)
last_modified = love.filesystem.getLastModified(lick.file) if info and last_modified < info.modtime then
last_modified = info.modtime
success, chunk = pcall(love.filesystem.load, lick.file) success, chunk = pcall(love.filesystem.load, lick.file)
if not success then if not success then
print(tostring(chunk)) print(tostring(chunk))