-
-
Notifications
You must be signed in to change notification settings - Fork 855
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
The Great Restubbening - part 1 #9369
Conversation
It looks like |
The feature isn't enabled on web (or anywhere by default) - it'll be used by a tool that just extracts the list and dumps it out |
Can you also implement a native function in ActionScript (probably in the |
Also, shouldn't |
That's what I meant by:
|
Ok, thanks! I also noticed that the PR returns
|
For stubbing AS3 methods, I think using metadata tags would look nice, like this: [Ruffle(Stub)]
public function registerClassAlias(a:String, b:Object):void {} |
I have no idea how to get that working, but I'll give it a shot! My plan was just to call |
… don't know what to return otherwise)
Fixed! |
It appears that we are stubbing undocumented methods (such as |
There's a lot of conflicting documentation for AS1 & AS2, and we implement a whole bunch of stuff that's not well documented. |
The log_warn part of the regex is temporary, and will likely need a change with a future Ruffle PR.
We currently have a bunch of ways to stub things:
This changes all rust stubs within AVM1 & AVM2 classes to a new stub system, which we should use going forwards. It prints a warning when the first time an individual stub is encountered, and keeps track of the stubs encountered for a movie. It also changes things that previously errored, to return Undefined.
Later PRs will aim to achieve:
Individual PRs so as not to do a "change the world" PR, and we can benefit from the system right away.