Skip to content

Commit

Permalink
Support @WrapWithCondition v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Feb 3, 2024
1 parent dd225b3 commit 3faf542
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ object MixinExtra {
const val MODIFY_RECIEVER = "Lcom/llamalad7/mixinextras/injector/ModifyReciever;"
const val MODIFY_RETURN_VALUE = "Lcom/llamalad7/mixinextras/injector/ModifyReturnValue;"
const val WRAP_WITH_CONDITION = "Lcom/llamalad7/mixinextras/injector/WrapWithCondition;"
const val WRAP_WITH_CONDITION_V2 = "Lcom/llamalad7/mixinextras/injector/v2/WrapWithCondition;"
const val WRAP_OPERATION = "Lcom/llamalad7/mixinextras/injector/wrapoperation/WrapOperation;"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class WrapWithConditionAnnotationVisitor(
methodExceptions: Array<out String>?,
refmapBuilder: RefmapBuilderClassVisitor
): Boolean {
return descriptor == MixinExtra.Annotation.WRAP_WITH_CONDITION
return descriptor == MixinExtra.Annotation.WRAP_WITH_CONDITION || descriptor == MixinExtra.Annotation.WRAP_WITH_CONDITION_V2
}

}
Expand Down

0 comments on commit 3faf542

Please sign in to comment.