avm2: Rename `Avm2::load_abc` to `Avm2::do_abc`
This aligns with the name of `DoAbc` tags.
This commit is contained in:
parent
ad91992cb5
commit
ad84c2bbcb
|
@ -261,7 +261,7 @@ impl<'gc> Avm2<'gc> {
|
|||
}
|
||||
|
||||
/// Load an ABC file embedded in a `DoAbc` tag.
|
||||
pub fn load_abc(
|
||||
pub fn do_abc(
|
||||
context: &mut UpdateContext<'_, 'gc, '_>,
|
||||
do_abc: DoAbc,
|
||||
domain: Domain<'gc>,
|
||||
|
|
|
@ -681,7 +681,7 @@ fn load_playerglobal<'gc>(
|
|||
let do_abc = reader
|
||||
.read_do_abc()
|
||||
.expect("playerglobal.swf should be valid");
|
||||
Avm2::load_abc(&mut activation.context, do_abc, domain)
|
||||
Avm2::do_abc(&mut activation.context, do_abc, domain)
|
||||
.expect("playerglobal.swf should be valid");
|
||||
} else if tag_code != TagCode::End {
|
||||
panic!(
|
||||
|
|
|
@ -579,7 +579,7 @@ impl<'gc> MovieClip<'gc> {
|
|||
let movie = self.movie().unwrap();
|
||||
let domain = context.library.library_for_movie_mut(movie).avm2_domain();
|
||||
|
||||
if let Err(e) = Avm2::load_abc(context, do_abc, domain) {
|
||||
if let Err(e) = Avm2::do_abc(context, do_abc, domain) {
|
||||
log::warn!("Error loading ABC file: {}", e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue