Added love.quit callback

This commit is contained in:
Bart van Strien
2010-07-31 16:22:12 +02:00
parent 57f25a98e4
commit 55ec59810d
4 changed files with 710 additions and 701 deletions
+5 -3
View File
@@ -319,10 +319,12 @@ function love.run()
if love.event then
for e,a,b,c in love.event.poll() do
if e == "q" then
if love.audio then
love.audio.stop()
if not love.quit or not love.quit() then
if love.audio then
love.audio.stop()
end
return
end
return
end
love.handlers[e](a,b,c)
end