Skip to content

Commit

Permalink
修正+优化 自定义刷新率hook
Browse files Browse the repository at this point in the history
  • Loading branch information
hosizoraru committed May 19, 2023
1 parent 8fcff3d commit 770e2b0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ object CustomRefreshRateP : HookRegister() {
name == "parseCustomModeSwitchFromDb" && paramCount == 1 && parameterTypes[0] == String::class.java
}.createHook {
before {
setObject(it.thisObject,"mIsCustomFpsSwitch", true)
setObject(it.thisObject,"fucSwitch", true)
// setObject(it.thisObject, "fucSwitch", true)
setObject(it.thisObject, "mIsCustomFpsSwitch", "true")
// val qwq = getObjectOrNull(it.thisObject, "mIsCustomFpsSwitch")
// Log.i("hook mIsCustomFpsSwitch success, its:$qwq")
}
}
}
Expand Down

0 comments on commit 770e2b0

Please sign in to comment.