This commit is contained in:
2022-02-08 21:35:13 +08:00
parent c5bd89b26a
commit d8091684f7
4 changed files with 68 additions and 9 deletions

View File

@@ -176,7 +176,7 @@ class YukiHookCreater(private val packageParam: PackageParam, val hookClass: Cla
* @param initiate 方法体
* @return [ConstructorFinder.Result]
*/
fun constructor(initiate: ConstructorFinder.() -> Unit): ConstructorFinder.Result {
fun constructor(initiate: ConstructorFinder.() -> Unit = {}): ConstructorFinder.Result {
hookAllMembers = HookAllMembers.HOOK_NONE
isHookMemberSetup = true
return ConstructorFinder(hookInstance = this, hookClass).apply(initiate).build()