cleanup skipMovie recursively

This commit is contained in:
2023-08-26 12:59:48 -06:00
parent 48e7546827
commit b015e1d6ce
2 changed files with 7 additions and 1 deletions

View File

@@ -402,7 +402,9 @@
(FlxG.state.remove darkness true) (FlxG.state.remove darkness true)
(FlxG.state.remove lightSprite true)) (FlxG.state.remove lightSprite true))
(method :Void cleanup [] 0) (method :Void cleanup []
// TODO does this need to clear out currentSounds, etc? Probably
)
(method :Option<AutoZConfig> autoZConfig [] (Some (object zPerLayer flxMovie.STAGE_BEHIND_DY frontLayer 0))) (method :Option<AutoZConfig> autoZConfig [] (Some (object zPerLayer flxMovie.STAGE_BEHIND_DY frontLayer 0)))

View File

@@ -504,6 +504,10 @@
(set onLabel ->:Void label (set FlxDirector.lastSceneLabel label))) (set onLabel ->:Void label (set FlxDirector.lastSceneLabel label)))
(cleanup
(when skipMovie
(callPrivate skipMovie "doCleanup")))
(#when debug (#when debug
(preload (preload
(.registerItem (director.shortcutHandler) "[n]ext label" (.registerItem (director.shortcutHandler) "[n]ext label"