MCPcopy Create free account
hub / github.com/cinit/TMoe / afterAlways

Method afterAlways

app/src/main/java/cc/ioctl/tmoe/util/HookUtils.java:88–102  ·  view source on GitHub ↗
(final @NonNull CommonDynamicHook this0, int priority,
                                            final @NonNull AfterHookedMethod afterHookedMethod)

Source from the content-addressed store, hash-verified

86 }
87
88 public static XC_MethodHook afterAlways(final @NonNull CommonDynamicHook this0, int priority,
89 final @NonNull AfterHookedMethod afterHookedMethod) {
90 Objects.requireNonNull(this0, "this0 == null");
91 return new XC_MethodHook(priority) {
92 @Override
93 protected void afterHookedMethod(MethodHookParam param) throws Throwable {
94 try {
95 afterHookedMethod.afterHookedMethod(param);
96 } catch (Throwable e) {
97 this0.logError(e);
98 throw e;
99 }
100 }
101 };
102 }
103
104 public static XC_MethodHook beforeIfEnabled(final @NonNull CommonDynamicHook this0,
105 final @NonNull BeforeHookedMethod beforeHookedMethod) {

Callers 1

AddReloadMsgBtnClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected