mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Sound should now work again. Music looping does probably not work, however (at least now with mp3).
This commit is contained in:
@@ -197,7 +197,12 @@ function love.run()
|
||||
|
||||
-- Process events.
|
||||
for e,a,b,c in love.event.poll() do
|
||||
if e == "q" then return end
|
||||
if e == "q" then
|
||||
if love.audio then
|
||||
love.audio.stop()
|
||||
end
|
||||
return
|
||||
end
|
||||
love.handlers[e](a,b,c)
|
||||
end
|
||||
|
||||
@@ -671,7 +676,9 @@ function love.errhand(msg)
|
||||
while true do
|
||||
e, a, b, c = love.event.wait()
|
||||
|
||||
if e == "q" then return end
|
||||
if e == "q" then
|
||||
return
|
||||
end
|
||||
if e == "kp" and a == "escape" then
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user