From 67744650f1886670cab110192eaf054d184ee41f Mon Sep 17 00:00:00 2001 From: David Wendt Date: Sat, 29 Feb 2020 19:59:54 -0500 Subject: [PATCH] Pass the ABC name and lazy init flag to the AVM2. --- core/src/avm2.rs | 2 ++ core/src/player.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/avm2.rs b/core/src/avm2.rs index b3e40443a..a5b32cc35 100644 --- a/core/src/avm2.rs +++ b/core/src/avm2.rs @@ -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()); diff --git a/core/src/player.rs b/core/src/player.rs index 4e5406092..93b36bf11 100644 --- a/core/src/player.rs +++ b/core/src/player.rs @@ -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); } }