fix(switch): stamp Version.lua, gate resume music, keep NX import hint

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Andrew Quenehen
2026-08-01 13:13:09 -03:00
parent 2f75af902c
commit b54d0c605a
3 changed files with 32 additions and 7 deletions
+5 -2
View File
@@ -591,9 +591,12 @@ end
function Game:onResume()
Input:reset()
TouchControls:reset()
-- Chip music may survive suspend as a duplicate stream; stop it and let
-- Chip music may survive NX suspend as a duplicate stream; stop it and let
-- the active screen re-cue on the next frame (hardware audio check: T19).
require("src.core.ChipAudio").stopMusic()
-- Desktop/mobile window-visible flips must not kill overworld music.
if require("src.core.Platform").isNX() then
require("src.core.ChipAudio").stopMusic()
end
local SwitchDiagnostics = require("src.debug.SwitchDiagnostics")
if SwitchDiagnostics.isEnabled() then
SwitchDiagnostics.onEvent("lifecycle", { event = "resume" })