feat(P.3.4): ESC -> switch_module(launcher) per ADR-0028
This commit is contained in:
5
init.lua
5
init.lua
@@ -81,7 +81,10 @@ end
|
||||
|
||||
function update(ctx, dt)
|
||||
if input.was_action_pressed("quit") then
|
||||
engine.exit(0)
|
||||
-- ADR-0028: ESC returns to launcher rather than exiting the app.
|
||||
-- If launcher is not discoverable, P.3.2 lifecycle handles via fatal.
|
||||
engine.switch_module("lib-sporel.launcher")
|
||||
return
|
||||
end
|
||||
|
||||
player.update(dt)
|
||||
|
||||
Reference in New Issue
Block a user