From 8db346e0c5723fa32631f2a9a0159346d8175b25 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 30 Aug 2023 18:44:30 -0600 Subject: [PATCH] scavenge sound descriptions --- memory-fix.org | 8 ++++---- src/hollywoo/Movie.kiss | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/memory-fix.org b/memory-fix.org index 7165ebf..85d86cd 100644 --- a/memory-fix.org +++ b/memory-fix.org @@ -4,7 +4,7 @@ ** 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 "" "") ** DONE make loading things at runtime a compiler error -* TODO in all new* methods, save the path that was loaded -* TODO in all with_ macros, mark those assets as dirty (needing to be reloaded) -* TODO Movie.scavenge before cleanup -* TODO in all new* methods, don't load the new thing if it exists already \ No newline at end of file +* DONE try disabling AssetCache completely +* DONE in all with_ macros, mark those assets as dirty (needing to be reloaded) +* DONE Movie.scavenge before cleanup +* DONE in all new* methods, don't load the new thing if it exists already \ No newline at end of file diff --git a/src/hollywoo/Movie.kiss b/src/hollywoo/Movie.kiss index b396341..8450577 100644 --- a/src/hollywoo/Movie.kiss +++ b/src/hollywoo/Movie.kiss @@ -68,6 +68,7 @@ (doFor =>key sound movie.sounds (+= t 1) (+= c 1) + (dictSet soundDescriptions key (dictGet movie.soundDescriptions key)) (dictSet sounds key sound) (movie.sounds.remove key)) (doFor =>key song movie.songs