Skip to content

Commit

Permalink
Zygisk refactoring part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Nov 10, 2023
1 parent 6d6f14f commit cfb20b0
Show file tree
Hide file tree
Showing 6 changed files with 261 additions and 149 deletions.
2 changes: 1 addition & 1 deletion native/src/core/zygisk/gen_jni_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def body(self):
for a in self.args:
if a.set_arg:
decl += ind(1) + f'args.{a.name} = &{a.name};'
decl += ind(1) + 'HookContext ctx(env, &args);'
decl += ind(1) + 'ZygiskContext ctx(env, &args);'
decl += ind(1) + f'ctx.{self.base_name()}_pre();'
decl += ind(1) + self.orig_method() + '('
decl += ind(2) + f'env, clazz, {self.name_list()}'
Expand Down
Loading

0 comments on commit cfb20b0

Please sign in to comment.