-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
Implement ImportAssets/ImportAssets2 #16420
Conversation
80b26bc
to
e92933a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What you have so far largely feels correct, though I absolutely do think this needs some test cases, if only to rule out some of the speculation I put in the comments.
Testing can be tricky because of the async nature of the loading. I think flash locks the all vm to load something but in our case we cannot do it. So it works on these games because the loading is in the menu but if you make an artificial swf you need to put some arbitrary sleep and I'm not sure how to do it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor nit from me otherwise looks good, I'd like to get this in and then I want to work on a followup soon for testing + more edge cases
Load the ImportAssets(2) url async and copy the character requested.
This does not cover all cases because it requires extensive time of reversing the behavior of Flash but it fixes at least 2 real games I tested.
#15017 (needs to set the HTTP referral if run on desktop, works perfectly as extension)
#10305