scavenge sound descriptions

This commit is contained in:
2023-08-30 18:44:30 -06:00
parent e6900185fc
commit 8db346e0c5
2 changed files with 5 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
** DONE allow for alternative loading with the object directly, like how some props in HollywooFlixel are animated via ActorFlxSprite ** DONE allow for alternative loading with the object directly, like how some props in HollywooFlixel are animated via ActorFlxSprite
** DONE if the assetpath doesn't start with assets/, call (assetPath "<typeDir>" "<path>") ** DONE if the assetpath doesn't start with assets/, call (assetPath "<typeDir>" "<path>")
** DONE make loading things at runtime a compiler error ** DONE make loading things at runtime a compiler error
* TODO in all new* methods, save the path that was loaded * DONE try disabling AssetCache completely
* TODO in all with_ macros, mark those assets as dirty (needing to be reloaded) * DONE in all with_ macros, mark those assets as dirty (needing to be reloaded)
* TODO Movie.scavenge before cleanup * DONE Movie.scavenge before cleanup
* TODO in all new* methods, don't load the new thing if it exists already * DONE in all new* methods, don't load the new thing if it exists already

View File

@@ -68,6 +68,7 @@
(doFor =>key sound movie.sounds (doFor =>key sound movie.sounds
(+= t 1) (+= t 1)
(+= c 1) (+= c 1)
(dictSet soundDescriptions key (dictGet movie.soundDescriptions key))
(dictSet sounds key sound) (dictSet sounds key sound)
(movie.sounds.remove key)) (movie.sounds.remove key))
(doFor =>key song movie.songs (doFor =>key song movie.songs