You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Goto(method="foo", at = @At(value = "INVOKE", target = "bar...", shift = BEFORE), to = @At(value = "INVOKE", target = "bar...", shift = AFTER)
booleancondition() {
returntrue; // if return true, goto the "to" target, otherwise, do nothing. This is like if statement.
}
I know this may be unnecessary because @Redirect is already here, but @Redirects often cause a lot of conflicts. Many redirects just add a condition, if we provide a compatible method to do that, we can reduce conflicts. What's more, this feature can support break and continue, which is also very useful i think.
The text was updated successfully, but these errors were encountered:
Can we add a new injection mode that can inject
goto
s?For example, original code:
then
Finally, the code is like
Its definition may be like:
I know this may be unnecessary because
@Redirect
is already here, but@Redirect
s often cause a lot of conflicts. Many redirects just add a condition, if we provide a compatible method to do that, we can reduce conflicts. What's more, this feature can supportbreak
andcontinue
, which is also very useful i think.The text was updated successfully, but these errors were encountered: