-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warnings under Love 11.1 #9
Comments
I've patched it locally. I'll see about providing a PR soon. |
Since the functions are already at the top, and have a very definite purpose, changing them is pretty easy: local isdir = function(item) return love.filesystem.getInfo(item).type == "directory" end --love.filesystem.isDirectory
local lastmodified = function(item) return love.filesystem.getInfo(item).modtime end --love.filesystem.getLastModified Also, the code provided by @4v0v uses size instead of modtime to determine whether a file was modified, which doesn't work in the (admittedly few) instances where the file is still the same size after modification. |
Oh I understand why I had so many bugs now... Don't use my code indeed xd |
I've made a PR for this. #10 |
I'm still currently using love 0.10.2 -- if anyone wants to add the functions @weakman54 described combined with a call to |
The text was updated successfully, but these errors were encountered: