Added useDangerousOperation function in YukiMemberHookCreater and rejected dangerous operation as default

This commit is contained in:
2022-08-13 00:00:54 +08:00
parent c528610bba
commit c72c2a9929
3 changed files with 69 additions and 20 deletions

View File

@@ -130,6 +130,26 @@ injectMember(priority = PRIORITY_HIGHEST) {
}
```
### useDangerousOperation [method]
```kotlin
fun useDangerousOperation(option: String)
```
**变更记录**
`v1.0.93` `新增`
**功能描述**
> 允许 Hook 过程中的所有危险行为。
请在 `option` 中键入 `Yes do as I say!` 代表你同意允许所有危险行为。
你还需要在整个作用域中声明注解 `CauseProblemsApi` 以消除警告。
!> 若你不知道允许此功能会带来何种后果,请勿使用。
### MemberHookCreater [class]
```kotlin