Pass the ABC name and lazy init flag to the AVM2.
This commit is contained in:
parent
6cc3f7ecc3
commit
67744650f1
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue