Skip to content

Commit

Permalink
[skin] Make song download screen obey back button
Browse files Browse the repository at this point in the history
  • Loading branch information
itszn committed May 18, 2021
1 parent eef36f8 commit b75c04d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bin/skins/Default/scripts/downloadscreen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -348,18 +348,17 @@ function button_pressed(button)
else
screenState = 0
end
end
end

function key_pressed(key)
if key == 27 then --escape pressed
elseif button == game.BUTTON_BCK then
dlcache = io.open(cachepath, "w")
dlcache:write(json.encode(downloaded))
dlcache:close()
dlScreen.Exit()
end
end

function key_pressed(key)
end


function advance_selection(steps)
if screenState == 0 and #songs > 0 then
Expand Down

0 comments on commit b75c04d

Please sign in to comment.