Skip to content

Commit

Permalink
opt UnlockHotseatIcon (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
xzakota authored Nov 8, 2024
1 parent cfc06aa commit 0a451fb
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@
*/
package com.sevtinge.hyperceiler.module.hook.home

import com.sevtinge.hyperceiler.utils.*
import com.sevtinge.hyperceiler.module.base.tool.HookTool.MethodHook.*

class UnlockHotseatIcon : HomeBaseHook() {
override fun init() {
DEVICE_CONFIG.hookBeforeMethod(
if (isNewHome) "calHotseatMaxCount" else "getHotseatMaxCount"
) {
it.result = 99
}
findAndHookMethod(DEVICE_CONFIG, "getHotseatMaxCount", returnConstant(99))
}
}

0 comments on commit 0a451fb

Please sign in to comment.