mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
fix: curly brace syntax in YukiHookAPI
This commit is contained in:
@@ -460,13 +460,13 @@ object YukiHookAPI {
|
|||||||
*/
|
*/
|
||||||
fun encase(baseContext: Context?, vararg hooker: YukiBaseHooker) {
|
fun encase(baseContext: Context?, vararg hooker: YukiBaseHooker) {
|
||||||
isLoadedFromBaseContext = true
|
isLoadedFromBaseContext = true
|
||||||
if (HookApiCategoryHelper.hasAvailableHookApi)
|
if (HookApiCategoryHelper.hasAvailableHookApi) {
|
||||||
if (baseContext != null)
|
if (baseContext != null)
|
||||||
if (hooker.isNotEmpty()) {
|
if (hooker.isNotEmpty()) {
|
||||||
printSplashInfo()
|
printSplashInfo()
|
||||||
hooker.forEach { it.assignInstance(packageParam = baseContext.createPackageParam()) }
|
hooker.forEach { it.assignInstance(packageParam = baseContext.createPackageParam()) }
|
||||||
} else YLog.innerE("Failed to passing \"encase\" method because your hooker param is empty", isImplicit = true)
|
} else YLog.innerE("Failed to passing \"encase\" method because your hooker param is empty", isImplicit = true)
|
||||||
else printNotFoundHookApiError()
|
} else printNotFoundHookApiError()
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 输出欢迎信息调试日志 */
|
/** 输出欢迎信息调试日志 */
|
||||||
|
Reference in New Issue
Block a user