When selecting "Replay Intro" in Settings > System, the restart dialog shows up. No matter which button is pressed on this dialog, the intro is replayed when Settings is closed.
I feel like pressing "Cancel" on this last dialog should not replay the intro, even if the only action you're canceling at the moment is the device reboot.
To fix it, in
local replayIntroAnimation = function() playdate.system.setFirstLaunchStatus(playdate.system.kPDFirstLaunchReplayIntroAnimation) restartAction() end
local replayIntroAnimation = function() Alert.show("Restart", [[ Are you sure you want to restart?]], "OK", "Cancel", function(okSelected) if true == okSelected and 1 ~= playdate.isSimulator then playdate.system.setFirstLaunchStatus(playdate.system.kPDFirstLaunchReplayIntroAnimation) playdate.exit() end end) end