avm2: DoAbc (72) seems to imply lazy loading

This commit is contained in:
Nathan Adams 2023-02-12 22:47:15 +01:00
parent 94fdc8bdb5
commit eb35d6217b
1 changed files with 2 additions and 1 deletions

View File

@ -714,7 +714,8 @@ impl<'gc> MovieClip<'gc> {
let movie = self.movie(); let movie = self.movie();
let domain = context.library.library_for_movie_mut(movie).avm2_domain(); let domain = context.library.library_for_movie_mut(movie).avm2_domain();
if let Err(e) = Avm2::do_abc(context, data, swf::DoAbc2Flag::empty(), domain) { // DoAbc tag seems to be equivalent to a DoAbc2 with Lazy flag set
if let Err(e) = Avm2::do_abc(context, data, swf::DoAbc2Flag::LAZY_INITIALIZE, domain) {
tracing::warn!("Error loading ABC file: {}", e); tracing::warn!("Error loading ABC file: {}", e);
} }
} }