Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avm2: Port Vector classes to AS #19393

Merged
merged 9 commits into from
Feb 5, 2025

Conversation

Lord-McSweeney
Copy link
Collaborator

This unblocks porting Number, uint, and int to AS

@kjarosh kjarosh added A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player labels Feb 2, 2025
@Lord-McSweeney Lord-McSweeney added the waiting-on-review Waiting on review from a Ruffle team member label Feb 2, 2025
@Lord-McSweeney Lord-McSweeney changed the title avm2: Port specialized Vector classes to AS avm2: Port Vector classes to AS Feb 2, 2025
@@ -279,6 +284,13 @@ fn rust_method_name_and_path(
let name = resolve_multiname_name(abc, trait_name).to_string();

path += &flash_to_rust_string(&name, false, "::");

match &trait_.kind {
TraitKind::Getter { .. } => flash_method_path += "get ",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be sure, what was this added for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes around naming were to have correct method names in stack traces. Without the two changes, the DisplayObject blendMode setter would display as flash.display::DisplayObject/flash::display::DisplayObject::blendMode(). Now it displays as flash.display::DisplayObject/set blendMode(), matching FP.

@Lord-McSweeney Lord-McSweeney removed the waiting-on-review Waiting on review from a Ruffle team member label Feb 5, 2025
@Lord-McSweeney Lord-McSweeney enabled auto-merge (rebase) February 5, 2025 00:35
@Lord-McSweeney Lord-McSweeney merged commit 127712b into ruffle-rs:master Feb 5, 2025
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants