avoid redundant writes on exit
This commit is contained in:
parent
feba7bf3c2
commit
9410cccb08
4
main.lua
4
main.lua
|
@ -323,7 +323,9 @@ end
|
||||||
|
|
||||||
-- make sure to save before quitting
|
-- make sure to save before quitting
|
||||||
function love.quit()
|
function love.quit()
|
||||||
save_to_disk(Lines, Filename)
|
if Next_save then
|
||||||
|
save_to_disk(Lines, Filename)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function App.mousepressed(x,y, mouse_button)
|
function App.mousepressed(x,y, mouse_button)
|
||||||
|
|
Loading…
Reference in New Issue