mirror of
https://github.com/LittleTurtle2333/SimplicityTools.git
synced 2026-07-12 11:21:18 +08:00
新增 去除自动连招开关开关
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -12,10 +12,9 @@ class SecurityCenter : IXposedHookLoadPackage {
|
||||
XposedBridge.log("成功Hook: " + javaClass.simpleName)
|
||||
//跳过 5/10秒等待时间
|
||||
SkipWaitingTime().handleLoadPackage(lpparam)
|
||||
//锁定 100分
|
||||
LockOneHundred().handleLoadPackage(lpparam)
|
||||
|
||||
//去除自动连招黑名单
|
||||
RemoveMacroBlacklist().handleLoadPackage(lpparam)
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.lt2333.simplicitytools.hook.app.securitycenter
|
||||
|
||||
import com.lt2333.simplicitytools.util.XSPUtils
|
||||
import de.robv.android.xposed.IXposedHookLoadPackage
|
||||
import de.robv.android.xposed.XC_MethodHook
|
||||
import de.robv.android.xposed.XposedHelpers
|
||||
@@ -7,6 +8,7 @@ import de.robv.android.xposed.callbacks.XC_LoadPackage
|
||||
|
||||
class RemoveMacroBlacklist : IXposedHookLoadPackage {
|
||||
override fun handleLoadPackage(lpparam: XC_LoadPackage.LoadPackageParam) {
|
||||
if (XSPUtils.getBoolean("remove_macro_blacklist", false)) {
|
||||
var letter = 'a'
|
||||
for (i in 0..25) {
|
||||
val classIfExists = XposedHelpers.findClassIfExists(
|
||||
@@ -25,3 +27,4 @@ class RemoveMacroBlacklist : IXposedHookLoadPackage {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -139,4 +139,5 @@
|
||||
<string name="left_margin">左边距 (0: 自动)</string>
|
||||
<string name="right_margin">右边距 (0: 自动)</string>
|
||||
<string name="layout_compatibility_mode_summary">使左右挖孔屏幕能正常显示</string>
|
||||
<string name="remove_macro_blacklist">去除游戏自动连招黑名单</string>
|
||||
</resources>
|
||||
|
||||
@@ -139,4 +139,5 @@
|
||||
<string name="left_margin">Left margin (0: Auto)</string>
|
||||
<string name="right_margin">Right margin (0: Auto)</string>
|
||||
<string name="layout_compatibility_mode_summary">Make the left and right hole screen can be displayed normally</string>
|
||||
<string name="remove_macro_blacklist">Remove game macro blacklist</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user