mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-06 02:35:40 +08:00
...
This commit is contained in:
@@ -202,9 +202,9 @@ class YukiHookCreater(private val packageParam: PackageParam, private val hookCl
|
|||||||
* @param initiate 方法体
|
* @param initiate 方法体
|
||||||
* @return [FieldFinder.Result]
|
* @return [FieldFinder.Result]
|
||||||
*/
|
*/
|
||||||
fun HookParam.field(initiate: FieldFinder.() -> Unit) =
|
fun field(initiate: FieldFinder.() -> Unit) =
|
||||||
if (hookClass.instance == null) FieldFinder(hookInstance = this@MemberHookCreater).failure(hookClass.throwable)
|
if (hookClass.instance == null) FieldFinder(hookInstance = this).failure(hookClass.throwable)
|
||||||
else FieldFinder(hookInstance = this@MemberHookCreater, hookClass.instance).apply(initiate).build()
|
else FieldFinder(hookInstance = this, hookClass.instance).apply(initiate).build()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在方法执行完成前 Hook
|
* 在方法执行完成前 Hook
|
||||||
|
Reference in New Issue
Block a user