refactor(AttackCategoryBox): 将lambda表达式改为匿名内部类以提高可读性
修改核心自改方法中的线程实现,从lambda表达式改为传统的匿名内部类形式,使代码结构更清晰易读
This commit is contained in:
@@ -92,25 +92,30 @@ public class AttackCategoryBox extends CategoryBox {
|
|||||||
private static volatile long selfYaddr = -1; // 玩家y坐标地址
|
private static volatile long selfYaddr = -1; // 玩家y坐标地址
|
||||||
public static final int ARM = 64;
|
public static final int ARM = 64;
|
||||||
public static final int P_SIZE = 8; // 指针大小(64位固定为8字节)
|
public static final int P_SIZE = 8; // 指针大小(64位固定为8字节)
|
||||||
private static boolean espkg = true;
|
private static boolean espkg = true;
|
||||||
private static Activity context; // 上下文
|
private static Activity context; // 上下文
|
||||||
|
|
||||||
public static void 核心自改() {
|
public static void 核心自改() {
|
||||||
loopThread = new Thread(() -> {
|
loopThread = new Thread(new Runnable() {
|
||||||
int[] offsets = {0xA4, 0xA0, 0x9C};
|
@Override
|
||||||
for (int offset : offsets) {
|
public void run() {
|
||||||
AlguiMemTool.setPackageName("com.vortex.celestial");
|
int[] offsets = { 0xA4, 0xA0, 0x9C };
|
||||||
AlguiMemTool.clearResultList();
|
for (int offset : offsets) {
|
||||||
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);
|
AlguiMemTool.setPackageName("com.vortex.celestial");
|
||||||
long daddr = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x454090) + 0x0) + 0x70) + 0x70) + offset;
|
AlguiMemTool.clearResultList();
|
||||||
AlguiMemTool.setMemoryAddrValue("1", daddr, AlguiMemTool.TYPE_FLOAT, true, true);
|
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);
|
||||||
AlguiMemTool.setFreezeDelayMs(0);
|
long daddr = AlguiMemTool
|
||||||
|
.jump64(AlguiMemTool.jump64(
|
||||||
|
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x454090) + 0x0) + 0x70) + 0x70)
|
||||||
|
+ offset;
|
||||||
|
AlguiMemTool.setMemoryAddrValue("1", daddr, AlguiMemTool.TYPE_FLOAT, true, true);
|
||||||
|
AlguiMemTool.setFreezeDelayMs(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
loopThread.start();
|
loopThread.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 快捷键
|
// 快捷键
|
||||||
// 卡片
|
// 卡片
|
||||||
public AttackCategoryBox() {
|
public AttackCategoryBox() {
|
||||||
|
|||||||
Reference in New Issue
Block a user