mirror of
https://github.com/usysrc/LICK.git
synced 2024-11-24 16:44:21 +00:00
added support for LÖVE 11.3
This commit is contained in:
parent
2515030a95
commit
74a8c86c1f
5
lick.lua
5
lick.lua
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user