Skip to content

Commit

Permalink
core: Rename ExternalInterface::any_id -> get_id, as it's no longer m…
Browse files Browse the repository at this point in the history
…ultiple providers
  • Loading branch information
Dinnerbone committed Oct 18, 2024
1 parent 7bd6365 commit f577e34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/avm2/globals/flash/external/external_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub fn get_object_id<'gc>(
_this: Object<'gc>,
_args: &[Value<'gc>],
) -> Result<Value<'gc>, Error<'gc>> {
if let Some(id) = activation.context.external_interface.any_id() {
if let Some(id) = activation.context.external_interface.get_id() {
Ok(AvmString::new_utf8(activation.gc(), id).into())
} else {
Ok(Value::Null)
Expand Down
2 changes: 1 addition & 1 deletion core/src/external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ impl<'gc> ExternalInterface<'gc> {
self.provider.is_some()
}

pub fn any_id(&self) -> Option<String> {
pub fn get_id(&self) -> Option<String> {
self.provider.as_ref().and_then(|p| p.get_id())
}

Expand Down

0 comments on commit f577e34

Please sign in to comment.