Pass the ABC name and lazy init flag to the AVM2.

This commit is contained in:
David Wendt 2020-02-29 19:59:54 -05:00
parent 6cc3f7ecc3
commit 67744650f1
2 changed files with 3 additions and 1 deletions

View File

@ -83,6 +83,8 @@ impl<'gc> Avm2<'gc> {
pub fn load_abc(
&mut self,
abc: SwfSlice,
_abc_name: &str,
_lazy_init: bool,
context: &mut UpdateContext<'_, 'gc, '_>,
) -> Result<(), Error> {
let mut read = Reader::new(abc.as_ref());

View File

@ -873,7 +873,7 @@ impl Player {
is_lazy_initialize,
abc,
} => {
if let Err(e) = avm2.load_abc(abc, context) {
if let Err(e) = avm2.load_abc(abc, &name, is_lazy_initialize, context) {
log::warn!("Error loading ABC file: {}", e);
}
}