refactor(ESP): 重构ESP模块代码结构,提取数据结构到独立类
feat(ESP): 新增实体绘制信息显示功能 fix(ESP): 修复坐标读取和保存的逻辑问题 style(ESP): 统一代码格式和缩进 docs(ESP): 添加关键方法注释
This commit is contained in:
@@ -63,14 +63,10 @@ public static void 音效() {
|
||||
}).start();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static void 远控音效() {
|
||||
AlguiToolAudio.playAudio(aContext, "cont.ogg");
|
||||
}
|
||||
|
||||
public static String km;
|
||||
|
||||
// 内存修改示例
|
||||
@@ -101,7 +97,6 @@ public static String km;
|
||||
.addRemoteFieldName("ottwo")
|
||||
.startWY(new AlguiCallback.WY2FA() {
|
||||
|
||||
|
||||
public void success(String kami, String user, String vip, HashMap<String, String> remote) {
|
||||
}
|
||||
|
||||
@@ -111,7 +106,8 @@ public static String km;
|
||||
});
|
||||
}
|
||||
|
||||
private static void MyMenu(final String kami, final String expireTime, HashMap<String, String> field, final Activity currentActivity) {
|
||||
private static void MyMenu(final String kami, final String expireTime, HashMap<String, String> field,
|
||||
final Activity currentActivity) {
|
||||
AlguiToolNative.loadLibrary("Algui");
|
||||
RootService.bind(new Intent(currentActivity, AlguiRootClient.class), new AlguiRootService());
|
||||
|
||||
@@ -137,8 +133,6 @@ public static String km;
|
||||
AlguiToolNetwork.get(AlguiDocument.getAdd("codeList", markcode + ";"));
|
||||
count++;
|
||||
|
||||
|
||||
|
||||
return "欢迎新用户!你是第" + count + "个用户";
|
||||
}
|
||||
|
||||
@@ -155,17 +149,15 @@ alreadyloggin = true;
|
||||
RemoteLinkWatcher.startWatching(
|
||||
"https://sharechain.qq.com/a3d3ef114852299548ab41773813c9bc",
|
||||
"https://sharechain.qq.com/788e56aa9ad0ebb26f149c12c535e916",
|
||||
MIX.getContext()
|
||||
);
|
||||
MIX.getContext());
|
||||
|
||||
final AlguiV a = AlguiV.Get(aContext);// 获取UI快速构建器
|
||||
// 绘制静态视图到屏幕上
|
||||
a.WinDraw
|
||||
(
|
||||
a.TextTag(null, ""+ Build.BRAND + "\nAndroid" + Build.VERSION.RELEASE +"\nTrosCore v1.0.0", 0xCE000000, expireTime)
|
||||
a.WinDraw(
|
||||
a.TextTag(null, "" + Build.BRAND + "\nAndroid" + Build.VERSION.RELEASE + "\nTrosCore v1.0.0",
|
||||
0xCE000000, expireTime)
|
||||
.setCatTextSize(8)
|
||||
.setCatTextColor(0xFFFFFFFF)
|
||||
,//绘制的视图
|
||||
.setCatTextColor(0xFFFFFFFF), // 绘制的视图
|
||||
Gravity.BOTTOM | Gravity.START, // 坐标原点 (这里右上原点)
|
||||
10, 10, // 相对原点xy偏移
|
||||
false// 视图是否可接收触摸事件
|
||||
@@ -174,14 +166,9 @@ final AlguiV a=AlguiV.Get(aContext);//获取UI快速构建器
|
||||
final AlguiV.TVNoSignalText tvNoSignal = new AlguiV.TVNoSignalText();
|
||||
tvNoSignal.start("TrosCore\nAccount:" + kami); // 开
|
||||
|
||||
|
||||
|
||||
|
||||
// 初始化 MIX
|
||||
MIX.init(currentActivity);
|
||||
|
||||
|
||||
|
||||
String userName = TextUtils.isEmpty(AlguiWin2FA.wy_user)
|
||||
? "TrosCore用户"
|
||||
: AlguiWin2FA.wy_user;
|
||||
@@ -191,10 +178,6 @@ ModuleManager.getInstance().setModuleEnabled(
|
||||
true,
|
||||
"Version:1.0.0 User:" + userName);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
|
||||
@@ -81,10 +81,8 @@ import android.graphics.PointF;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 导入数据结构类
|
||||
import com.bytecat.algui.ui.category.ESPDataStructures;
|
||||
|
||||
public class ESPCategoryBox extends CategoryBox {
|
||||
|
||||
@@ -94,12 +92,10 @@ public class ESPCategoryBox extends CategoryBox {
|
||||
|
||||
// 保留原有的标志变量
|
||||
|
||||
|
||||
public static final long BASE_OFFSET = 0x454090;
|
||||
|
||||
private static long matrixsAddr;
|
||||
|
||||
|
||||
private static float readFloatFromMemory(long address) throws NumberFormatException {
|
||||
if (address <= 0) {
|
||||
return 0;
|
||||
@@ -108,28 +104,15 @@ public class ESPCategoryBox extends CategoryBox {
|
||||
return Float.parseFloat(memData);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private static Activity context;
|
||||
|
||||
|
||||
public static float x;
|
||||
public static float y;
|
||||
public static float z;
|
||||
|
||||
|
||||
public static File dir = new File("/storage/emulated/0/TC配置文件/");
|
||||
public static File file = new File(dir, "coordinate1.txt");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public static void 获取坐标() {
|
||||
// 1. 获取bss段基址
|
||||
AlguiMemTool.setPackageName("com.vortex.celestial");// 设置包名
|
||||
@@ -159,13 +142,9 @@ if (!dir.exists()) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public ESPCategoryBox() {
|
||||
contentContainer
|
||||
|
||||
|
||||
.addView(createchushSwitchContentCard())
|
||||
.addView(createhzmbSwitchContentCard())
|
||||
.addView(createddhzSwitchContentCard())
|
||||
@@ -173,10 +152,9 @@ if (!dir.exists()) {
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private SwitchContentCard createchushSwitchContentCard() {
|
||||
final SwitchContentCard chushSwitchContentCard = new SwitchContentCard("初始化", "初始化相关数据").OText("初始化", "初始化相关数据","Initialize","Initialize relevant data").setChecked(false);
|
||||
final SwitchContentCard chushSwitchContentCard = new SwitchContentCard("初始化", "初始化相关数据")
|
||||
.OText("初始化", "初始化相关数据", "Initialize", "Initialize relevant data").setChecked(false);
|
||||
|
||||
chushSwitchContentCard.setSwitchCallback(new SwitchCallback() {
|
||||
@Override
|
||||
@@ -206,11 +184,6 @@ Fastesp.stop();
|
||||
return chushSwitchContentCard;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private BoxContentCard createhzmbSwitchContentCard() {
|
||||
// 创建一个可切换内容的卡片,用于显示和管理核心碰撞箱的设置
|
||||
final BoxContentCard hzmbSwitchContentCard = new BoxContentCard("目标", "选择绘制的目标")
|
||||
@@ -225,8 +198,6 @@ Column column = new Column()
|
||||
.setTopMargin(dip2pxInt(15))); // 顶部外边距为15dp
|
||||
hzmbSwitchContentCard.setExpandableContent(column); // 将内容区域设置到卡片中
|
||||
|
||||
|
||||
|
||||
final StatefulButton statefulButton = new StatefulButton("玩家", "player", true);
|
||||
statefulButton.setSwitchCallback(new SwitchCallback() {
|
||||
@Override
|
||||
@@ -238,8 +209,6 @@ Fastesp.setDrawPlayers(true);
|
||||
Fastesp.setDrawPlayers(false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
});
|
||||
@@ -258,29 +227,18 @@ Fastesp.setDrawItems(false);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// 创建第一行按钮
|
||||
Row buttonRow1 = new Row();
|
||||
buttonRow1.setLayoutParams(new LinearParams().setWidth(BaseHelper.MatchParent).setHeight(BaseHelper.WrapContent));
|
||||
buttonRow1
|
||||
.setLayoutParams(new LinearParams().setWidth(BaseHelper.MatchParent).setHeight(BaseHelper.WrapContent));
|
||||
|
||||
buttonRow1.addView(statefulButton);
|
||||
buttonRow1.addView(statefulButton2);
|
||||
column.addView(buttonRow1);
|
||||
|
||||
|
||||
|
||||
|
||||
return hzmbSwitchContentCard; // 返回创建的卡片
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private BoxContentCard createddhzSwitchContentCard() {
|
||||
// 创建一个可切换内容的卡片,用于显示和管理核心碰撞箱的设置
|
||||
final BoxContentCard ddhzSwitchContentCard = new BoxContentCard("定点", "绘制一个可以保存的固定红点")
|
||||
@@ -295,11 +253,6 @@ Column column = new Column()
|
||||
.setTopMargin(dip2pxInt(15))); // 顶部外边距为15dp
|
||||
ddhzSwitchContentCard.setExpandableContent(column); // 将内容区域设置到卡片中
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
final Text label1 = new Text()
|
||||
.setText("x=" + ",y=" + ",z=")
|
||||
.setTextSize(10f)
|
||||
@@ -310,8 +263,6 @@ ddhzSwitchContentCard.setExpandableContent(column); // 将内容区域设置到
|
||||
.setBottomMargin(dip2pxInt(5)));
|
||||
column.addView(label1);
|
||||
|
||||
|
||||
|
||||
final StatefulButton statefulButton1 = new StatefulButton("创建", "Create", false);
|
||||
|
||||
statefulButton1.setSwitchCallback(new SwitchCallback() {
|
||||
@@ -341,8 +292,7 @@ final Text shu1 = new Text()
|
||||
.setTextSize(15f)
|
||||
.setTextColor(0xFFC5C5C5)
|
||||
.setTypeface(Typeface.DEFAULT_BOLD)
|
||||
.setLayoutParams(new LinearParams().setHeight(BaseHelper.WrapContent)
|
||||
);
|
||||
.setLayoutParams(new LinearParams().setHeight(BaseHelper.WrapContent));
|
||||
|
||||
final RadioGroup radioGroup1 = new RadioGroup()
|
||||
.setLanguageSwitchFilePath("/sdcard/Android/data/com.vortex.celestial/files/switch.lang");
|
||||
@@ -374,12 +324,15 @@ radioGroup1.setRadioGroupCallback(new RadioGroupCallback() {
|
||||
if (!file.exists()) {
|
||||
try {
|
||||
file.createNewFile(); // 创建文件
|
||||
} catch (IOException e) {e.printStackTrace();}
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
if (!dir.exists()) dir.mkdirs();
|
||||
if (!dir.exists())
|
||||
dir.mkdirs();
|
||||
|
||||
BufferedWriter bw = new BufferedWriter(new FileWriter(file));
|
||||
bw.write("x=" + x);
|
||||
@@ -420,9 +373,18 @@ break;
|
||||
AlguiMemTool.setPackageName("com.vortex.celestial");// 设置包名
|
||||
AlguiMemTool.clearResultList(); // 清空之前的搜索结果
|
||||
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB); // 获取模块基址
|
||||
long zuobiaox = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x454090) + 0x0) + 0x70) + 0x10) + 0xA8; // 跳转指针
|
||||
long zuobiaoy = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x454090) + 0x0) + 0x70) + 0x10) + 0xA4; // 跳转指针
|
||||
long zuobiaoz = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x454090) + 0x0) + 0x70) + 0x10) + 0xA0; // 跳转指针
|
||||
long zuobiaox = AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x454090) + 0x0) + 0x70) + 0x10)
|
||||
+ 0xA8; // 跳转指针
|
||||
long zuobiaoy = AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x454090) + 0x0) + 0x70) + 0x10)
|
||||
+ 0xA4; // 跳转指针
|
||||
long zuobiaoz = AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x454090) + 0x0) + 0x70) + 0x10)
|
||||
+ 0xA0; // 跳转指针
|
||||
|
||||
AlguiMemTool.setMemoryAddrValue("" + y, zuobiaoy, AlguiMemTool.TYPE_FLOAT, false, true);
|
||||
AlguiMemTool.setMemoryAddrValue("" + z, zuobiaox, AlguiMemTool.TYPE_FLOAT, false, true);
|
||||
@@ -435,7 +397,6 @@ AlguiMemTool.setMemoryAddrValue(""+x, zuobiaoz,AlguiMemTool.TYPE_FLOAT, false ,t
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Row buttonRow1 = new Row()
|
||||
.setLayoutParams(new LinearParams()
|
||||
.setWidth(BaseHelper.MatchParent)
|
||||
@@ -446,77 +407,12 @@ Row buttonRow1 = new Row()
|
||||
buttonRow1.addView(shu1);
|
||||
buttonRow1.addView(radioGroup1);
|
||||
|
||||
|
||||
|
||||
// 把这一行添加到 column 中
|
||||
column.addView(buttonRow1);
|
||||
|
||||
return ddhzSwitchContentCard; // 返回创建的卡片
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private enum Color {
|
||||
RED(0xFFFF0000), // 红色
|
||||
GREEN(0xFF00FF00), // 绿色
|
||||
BLUE(0xFF0000FF), // 蓝色
|
||||
YELLOW(0xFFFFFF00), // 黄色
|
||||
WHITE(0xFFFFFFFF), // 白色
|
||||
BLACK(0xFF000000), // 黑色
|
||||
ORANGE(0xFFFFA500), // 橙色
|
||||
PURPLE(0xFF800080), // 紫色
|
||||
PINK(0xFFFFC0CB), // 粉色
|
||||
CYAN(0xFF00FFFF), // 青色
|
||||
MAGENTA(0xFFFF00FF), // 洋红色
|
||||
GRAY(0xFF808080); // 灰色
|
||||
|
||||
private final int value; // 存储颜色值
|
||||
|
||||
// 私有构造函数
|
||||
Color(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// 获取颜色值的方法
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
private enum CollisionBodyType {
|
||||
ENTITY, // 实体
|
||||
PLAYER, // 角色
|
||||
PICKUP // 拾取物
|
||||
}
|
||||
|
||||
// 碰撞体对象
|
||||
private static class CollisionBody {
|
||||
long address; // 内存地址
|
||||
CollisionBodyType type; // 类型
|
||||
int feature1; // 特征值1
|
||||
int feature2; // 特征值2
|
||||
}
|
||||
|
||||
// 绘制对象
|
||||
private static class DrawObject {
|
||||
long address; // 内存地址
|
||||
Color color; // 颜色
|
||||
CollisionBodyType type; // 类型
|
||||
int dis;
|
||||
int x;
|
||||
int y;
|
||||
}
|
||||
|
||||
private static final int pSize = 8;
|
||||
// 被选中对象内存地址
|
||||
private static long selectedAddr = 0;
|
||||
@@ -528,11 +424,10 @@ Row buttonRow1 = new Row()
|
||||
static long collAddrStart;
|
||||
|
||||
// 碰撞体列表
|
||||
private static CopyOnWriteArrayList<CollisionBody> collList = new
|
||||
CopyOnWriteArrayList<>();
|
||||
private static CopyOnWriteArrayList<ESPDataStructures.CollisionBody> collList = new CopyOnWriteArrayList<>();
|
||||
|
||||
// 绘制对象列表
|
||||
private static ArrayList<DrawObject> drawList = new ArrayList<>();
|
||||
private static ArrayList<ESPDataStructures.DrawObject> drawList = new ArrayList<>();
|
||||
|
||||
// 是否开启ESP(不是)
|
||||
private static boolean espkg = true;
|
||||
@@ -575,7 +470,6 @@ Row buttonRow1 = new Row()
|
||||
if (collAddr <= 0)
|
||||
return false;
|
||||
|
||||
|
||||
collAddrStart = jump(collAddr); // 更新 collAddrStart 的值
|
||||
return true; // 成功获取地址
|
||||
}
|
||||
@@ -583,15 +477,15 @@ Row buttonRow1 = new Row()
|
||||
// 数组更新方法
|
||||
private static void updateArray() {
|
||||
// 创建临时列表存储新数据
|
||||
ArrayList<DrawObject> newCollList = new ArrayList<>();
|
||||
ArrayList<ESPDataStructures.DrawObject> newCollList = new ArrayList<>();
|
||||
|
||||
try {
|
||||
int size = Integer.parseInt(AlguiMemTool.getMemoryAddrData(collAddr + 0x2C, AlguiMemTool.TYPE_DWORD));
|
||||
|
||||
// 遍历碰撞体数组并过滤
|
||||
for (int i = 0; i < size; i++) {
|
||||
CollisionBody p = new CollisionBody();
|
||||
DrawObject d = new DrawObject();
|
||||
ESPDataStructures.CollisionBody p = new ESPDataStructures.CollisionBody();
|
||||
ESPDataStructures.DrawObject d = new ESPDataStructures.DrawObject();
|
||||
p.address = jump(collAddrStart + i * pSize);
|
||||
|
||||
// 批量读取内存数据提高性能
|
||||
@@ -603,19 +497,19 @@ Row buttonRow1 = new Row()
|
||||
if (p.feature2 == 196614) {
|
||||
if (isDrawPlayer && p.feature1 == 17039361) {
|
||||
d.address = p.address;
|
||||
d.color = Color.GREEN;
|
||||
d.type = CollisionBodyType.PLAYER;
|
||||
d.color = ESPDataStructures.Color.GREEN;
|
||||
d.type = ESPDataStructures.CollisionBodyType.PLAYER;
|
||||
newCollList.add(d);
|
||||
} else if (isDrawPickup && p.feature1 == 17039617) {
|
||||
d.address = p.address;
|
||||
d.color = Color.PURPLE;
|
||||
d.type = CollisionBodyType.PICKUP;
|
||||
d.color = ESPDataStructures.Color.PURPLE;
|
||||
d.type = ESPDataStructures.CollisionBodyType.PICKUP;
|
||||
newCollList.add(d);
|
||||
}
|
||||
} else if (isDrawALLColl) {
|
||||
d.address = p.address;
|
||||
d.color = Color.GRAY;
|
||||
d.type = CollisionBodyType.ENTITY;
|
||||
d.color = ESPDataStructures.Color.GRAY;
|
||||
d.type = ESPDataStructures.CollisionBodyType.ENTITY;
|
||||
newCollList.add(d);
|
||||
}
|
||||
}
|
||||
@@ -653,11 +547,7 @@ Row buttonRow1 = new Row()
|
||||
|
||||
// 初始化绘制窗口方法
|
||||
private static AlguiWinDraw initDraw(Context context) {
|
||||
|
||||
return Fastesp.start(context);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,219 @@
|
||||
package com.bytecat.algui.ui.category;
|
||||
|
||||
import android.graphics.Typeface;
|
||||
import com.bytecat.algui.AlguiHacker.AlguiMemTool;
|
||||
import com.bytecat.algui.base.BaseHelper;
|
||||
import com.bytecat.algui.callback.SwitchCallback;
|
||||
import com.bytecat.algui.component.Column;
|
||||
import com.bytecat.algui.component.Row;
|
||||
import com.bytecat.algui.component.Text;
|
||||
import com.bytecat.algui.effect.Notification;
|
||||
import com.bytecat.algui.layoutparams.LinearParams;
|
||||
import com.bytecat.algui.ui.MIX;
|
||||
import com.bytecat.algui.ui.component.CategoryBox;
|
||||
import com.bytecat.algui.ui.component.StatefulButton;
|
||||
import com.bytecat.algui.ui.component.BoxContentCard;
|
||||
import com.bytecat.algui.ui.component.SwitchContentCard;
|
||||
import com.bytecat.algui.ui.component.RadioGroup;
|
||||
import com.bytecat.algui.callback.RadioGroupCallback;
|
||||
import com.bytecat.algui.AlguiWindows.AlguiWinDraw;
|
||||
import com.bytecat.algui.ui.Main;
|
||||
import com.bytecat.algui.effect.ModuleManager;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import java.io.BufferedReader;
|
||||
import java.io.FileReader;
|
||||
import java.io.FileWriter;
|
||||
import java.io.BufferedWriter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
public class ESPCategoryBox_Copy extends CategoryBox {
|
||||
|
||||
Notification notification = Notification.getInstance();
|
||||
|
||||
public static final long BASE_OFFSET = 0x454090;
|
||||
|
||||
private static float readFloatFromMemory(long address) throws NumberFormatException {
|
||||
if (address <= 0) {
|
||||
return 0;
|
||||
}
|
||||
String memData = AlguiMemTool.getMemoryAddrData(address, AlguiMemTool.TYPE_FLOAT);
|
||||
return Float.parseFloat(memData);
|
||||
}
|
||||
|
||||
// 配置文件目录
|
||||
public static File configDir = new File("/storage/emulated/0/TC配置文件/");
|
||||
// 坐标文件
|
||||
public static File coordinateFile = new File(configDir, "coordinate1.txt");
|
||||
|
||||
// 检查并创建配置文件目录
|
||||
public static void checkAndCreateConfigDir() {
|
||||
if (!configDir.exists()) {
|
||||
configDir.mkdirs(); // 创建文件夹
|
||||
}
|
||||
}
|
||||
|
||||
public ESPCategoryBox_Copy() {
|
||||
contentContainer
|
||||
.addView(createchushSwitchContentCard())
|
||||
.addView(createhzmbSwitchContentCard())
|
||||
.addView(createddhzSwitchContentCard());
|
||||
}
|
||||
|
||||
private SwitchContentCard createchushSwitchContentCard() {
|
||||
final SwitchContentCard chushSwitchContentCard = new SwitchContentCard("初始化", "初始化相关数据")
|
||||
.OText("初始化", "初始化相关数据", "Initialize", "Initialize relevant data").setChecked(false);
|
||||
|
||||
chushSwitchContentCard.setSwitchCallback(new SwitchCallback() {
|
||||
@Override
|
||||
public boolean onChecked(boolean newState) {
|
||||
// TODO: 实现初始化开关的逻辑
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
return chushSwitchContentCard;
|
||||
}
|
||||
|
||||
private BoxContentCard createhzmbSwitchContentCard() {
|
||||
// 创建一个可切换内容的卡片,用于显示和管理核心碰撞箱的设置
|
||||
final BoxContentCard hzmbSwitchContentCard = new BoxContentCard("目标", "选择绘制的目标")
|
||||
.OText("目标", "选择绘制的目标", "The goal of drawing", "Select the target for drawing")
|
||||
.setLanguageSwitchFilePath("/sdcard/Android/data/com.vortex.celestial/files/switch.lang");
|
||||
|
||||
// 创建一个可折叠的内容区域,用于放置设置选项
|
||||
Column column = new Column()
|
||||
.setLayoutParams(new LinearParams()
|
||||
.setWidth(BaseHelper.MatchParent) // 宽度填满父视图
|
||||
.setHeight(BaseHelper.WrapContent) // 高度自适应内容
|
||||
.setTopMargin(dip2pxInt(15))); // 顶部外边距为15dp
|
||||
hzmbSwitchContentCard.setExpandableContent(column); // 将内容区域设置到卡片中
|
||||
|
||||
final StatefulButton statefulButton = new StatefulButton("玩家", "player", true);
|
||||
statefulButton.setSwitchCallback(new SwitchCallback() {
|
||||
@Override
|
||||
public boolean onChecked(boolean newState) {
|
||||
// TODO: 实现玩家绘制开关的逻辑
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
final StatefulButton statefulButton2 = new StatefulButton("物品", "Article", false);
|
||||
statefulButton2.setSwitchCallback(new SwitchCallback() {
|
||||
@Override
|
||||
public boolean onChecked(boolean newState) {
|
||||
// TODO: 实现物品绘制开关的逻辑
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
// 创建第一行按钮
|
||||
Row buttonRow1 = new Row();
|
||||
buttonRow1
|
||||
.setLayoutParams(new LinearParams().setWidth(BaseHelper.MatchParent).setHeight(BaseHelper.WrapContent));
|
||||
|
||||
buttonRow1.addView(statefulButton);
|
||||
buttonRow1.addView(statefulButton2);
|
||||
column.addView(buttonRow1);
|
||||
|
||||
return hzmbSwitchContentCard; // 返回创建的卡片
|
||||
}
|
||||
|
||||
private BoxContentCard createddhzSwitchContentCard() {
|
||||
// 创建一个可切换内容的卡片,用于显示和管理核心碰撞箱的设置
|
||||
final BoxContentCard ddhzSwitchContentCard = new BoxContentCard("定点", "绘制一个可以保存的固定红点")
|
||||
.OText("定点", "绘制一个可以保存的固定红点", "Fixed point", "Draw a fixed red dot that can be saved")
|
||||
.setLanguageSwitchFilePath("/sdcard/Android/data/com.vortex.celestial/files/switch.lang");
|
||||
|
||||
// 创建一个可折叠的内容区域,用于放置设置选项
|
||||
Column column = new Column()
|
||||
.setLayoutParams(new LinearParams()
|
||||
.setWidth(BaseHelper.MatchParent) // 宽度填满父视图
|
||||
.setHeight(BaseHelper.WrapContent) // 高度自适应内容
|
||||
.setTopMargin(dip2pxInt(15))); // 顶部外边距为15dp
|
||||
ddhzSwitchContentCard.setExpandableContent(column); // 将内容区域设置到卡片中
|
||||
|
||||
final Text label1 = new Text()
|
||||
.setText("x=" + ",y=" + ",z=")
|
||||
.setTextSize(10f)
|
||||
.setTextColor(0xFFC5C5C5)
|
||||
.setTypeface(Typeface.DEFAULT_BOLD)
|
||||
.setLayoutParams(new LinearParams()
|
||||
.setWidth(BaseHelper.MatchParent)
|
||||
.setBottomMargin(dip2pxInt(5)));
|
||||
column.addView(label1);
|
||||
|
||||
final StatefulButton statefulButton1 = new StatefulButton("创建", "Create", false);
|
||||
|
||||
statefulButton1.setSwitchCallback(new SwitchCallback() {
|
||||
@Override
|
||||
public boolean onChecked(boolean newState) {
|
||||
// TODO: 实现定点创建/删除按钮的逻辑
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
final Text shu1 = new Text()
|
||||
.setText("|")
|
||||
.setTextSize(15f)
|
||||
.setTextColor(0xFFC5C5C5)
|
||||
.setTypeface(Typeface.DEFAULT_BOLD)
|
||||
.setLayoutParams(new LinearParams().setHeight(BaseHelper.WrapContent));
|
||||
|
||||
final RadioGroup radioGroup1 = new RadioGroup()
|
||||
.setLanguageSwitchFilePath("/sdcard/Android/data/com.vortex.celestial/files/switch.lang");
|
||||
|
||||
radioGroup1.setLayoutParams(new LinearParams().setWidth(BaseHelper.MatchParent));
|
||||
radioGroup1.setEnabled(true);
|
||||
|
||||
radioGroup1.addButton("获取", "Get", "1");
|
||||
radioGroup1.addButton("保存", "Save", "2");
|
||||
radioGroup1.addButton("读取", "Load", "3");
|
||||
radioGroup1.addButton("传送", "Teleport", "4");
|
||||
|
||||
// ✅ 关键:取消默认选中
|
||||
for (StatefulButton btn : radioGroup1.map.values()) {
|
||||
btn.setChecked(false);
|
||||
}
|
||||
|
||||
radioGroup1.setRadioGroupCallback(new RadioGroupCallback() {
|
||||
@Override
|
||||
public void onChecked(String id) {
|
||||
// TODO: 实现单选按钮组的逻辑
|
||||
switch (id) {
|
||||
case "1":// 获取
|
||||
// TODO: 实现获取坐标逻辑
|
||||
break;
|
||||
case "2":// 保存
|
||||
// TODO: 实现保存坐标逻辑
|
||||
break;
|
||||
case "3":// 读取
|
||||
// TODO: 实现读取坐标逻辑
|
||||
break;
|
||||
case "4":// 传送
|
||||
// TODO: 实现传送逻辑
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Row buttonRow1 = new Row()
|
||||
.setLayoutParams(new LinearParams()
|
||||
.setWidth(BaseHelper.MatchParent)
|
||||
.setHeight(BaseHelper.WrapContent)
|
||||
.setTopMargin(dip2pxInt(10)));
|
||||
|
||||
buttonRow1.addView(statefulButton1);
|
||||
buttonRow1.addView(shu1);
|
||||
buttonRow1.addView(radioGroup1);
|
||||
|
||||
// 把这一行添加到 column 中
|
||||
column.addView(buttonRow1);
|
||||
|
||||
return ddhzSwitchContentCard; // 返回创建的卡片
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.bytecat.algui.ui.category;
|
||||
|
||||
public class ESPDataStructures {
|
||||
/**
|
||||
* 颜色枚举
|
||||
*/
|
||||
public enum Color {
|
||||
RED(0xFFFF0000), // 红色
|
||||
GREEN(0xFF00FF00), // 绿色
|
||||
BLUE(0xFF0000FF), // 蓝色
|
||||
YELLOW(0xFFFFFF00), // 黄色
|
||||
WHITE(0xFFFFFFFF), // 白色
|
||||
BLACK(0xFF000000), // 黑色
|
||||
ORANGE(0xFFFFA500), // 橙色
|
||||
PURPLE(0xFF800080), // 紫色
|
||||
PINK(0xFFFFC0CB), // 粉色
|
||||
CYAN(0xFF00FFFF), // 青色
|
||||
MAGENTA(0xFFFF00FF), // 洋红色
|
||||
GRAY(0xFF808080); // 灰色
|
||||
|
||||
private final int value; // 存储颜色值
|
||||
|
||||
// 私有构造函数
|
||||
Color(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// 获取颜色值的方法
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 碰撞体类型枚举
|
||||
*/
|
||||
public enum CollisionBodyType {
|
||||
ENTITY, // 实体
|
||||
PLAYER, // 角色
|
||||
PICKUP // 拾取物
|
||||
}
|
||||
|
||||
/**
|
||||
* 碰撞体对象
|
||||
*/
|
||||
public class CollisionBody {
|
||||
public long address; // 内存地址
|
||||
public CollisionBodyType type; // 类型
|
||||
public int feature1; // 特征值1
|
||||
public int feature2; // 特征值2
|
||||
}
|
||||
|
||||
/**
|
||||
* 绘制对象
|
||||
*/
|
||||
public class DrawObject {
|
||||
public long address; // 内存地址
|
||||
public Color color; // 颜色
|
||||
public CollisionBodyType type; // 类型
|
||||
public int dis;
|
||||
public int x;
|
||||
public int y;
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,8 @@ public class Fastesp {
|
||||
private static final ConcurrentHashMap<String, Float> redPointsWorldZ = new ConcurrentHashMap<>();
|
||||
|
||||
public static AlguiWinDraw start(Context ctx) {
|
||||
if (ctx == null) ctx = MIX.getContext();
|
||||
if (ctx == null)
|
||||
ctx = MIX.getContext();
|
||||
if (ctx == null)
|
||||
throw new IllegalStateException("Context 为 null,请先初始化 MIX 或传入 Activity!");
|
||||
running = true;
|
||||
@@ -67,6 +68,7 @@ public static float joystickX;
|
||||
public static float joystickY;
|
||||
// 是否正在用摇杆
|
||||
public static boolean isJoystickMove;
|
||||
|
||||
// ================== 摇杆控件 ==================
|
||||
private static class JoystickView extends View {
|
||||
/* ==== 基本尺寸 ==== */
|
||||
@@ -101,14 +103,16 @@ private static class JoystickView extends View {
|
||||
}
|
||||
|
||||
/* ==== 绘制 ==== */
|
||||
@Override protected void onDraw(Canvas canvas) {
|
||||
@Override
|
||||
protected void onDraw(Canvas canvas) {
|
||||
canvas.drawCircle(baseX, baseY, bigR, bgPaint);
|
||||
canvas.drawCircle(knobX, knobY, smallR, knobPaint);
|
||||
}
|
||||
|
||||
/* ==== 触摸 ==== */
|
||||
@SuppressLint("ClickableViewAccessibility")
|
||||
@Override public boolean onTouchEvent(MotionEvent e) {
|
||||
@Override
|
||||
public boolean onTouchEvent(MotionEvent e) {
|
||||
float x = e.getX();
|
||||
float y = e.getY();
|
||||
|
||||
@@ -185,9 +189,10 @@ private static class JoystickView extends View {
|
||||
Fastesp.joystickX = dx / bigR; // 已归一化
|
||||
Fastesp.joystickY = -dy / bigR; // 屏幕坐标系转游戏坐标系
|
||||
Fastesp.isJoystickMove = draggingKnob;
|
||||
/* TODO: 如果需要把摇杆向量输出出去,可以在这里回调
|
||||
float vx = dx / bigR;
|
||||
float vy = -dy / bigR;
|
||||
/*
|
||||
* TODO: 如果需要把摇杆向量输出出去,可以在这里回调
|
||||
* float vx = dx / bigR;
|
||||
* float vy = -dy / bigR;
|
||||
*/
|
||||
}
|
||||
|
||||
@@ -196,10 +201,6 @@ Fastesp.isJoystickMove = draggingKnob;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* 专门给路径记录用的红点,旁边固定写“路径点” */
|
||||
public static void createPathPoint(float x, float y, float z, String id) {
|
||||
redPointsWorldX.put(id, x);
|
||||
@@ -208,31 +209,35 @@ public static void createPathPoint(float x, float y, float z, String id) {
|
||||
}
|
||||
// =============================================
|
||||
|
||||
|
||||
private static JoystickView joystick;
|
||||
|
||||
private static Thread moveThread;
|
||||
private static volatile boolean moveRunning;
|
||||
|
||||
public static void startMoveThread() {
|
||||
if (moveThread != null) return;
|
||||
if (moveThread != null)
|
||||
return;
|
||||
moveRunning = true;
|
||||
moveThread = new Thread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
/* ↓↓↓ 原来花括号里的代码全部原封不动搬进来 ↓↓↓ */
|
||||
int pid = AlguiMemTool.getPID("com.vortex.celestial");
|
||||
if (pid < 0) return;
|
||||
if (pid < 0)
|
||||
return;
|
||||
|
||||
long libClient = AlguiMemTool.getModuleBaseAddr("libclient.so", AlguiMemTool.HEAD_CB);
|
||||
if (libClient == 0) return;
|
||||
if (libClient == 0)
|
||||
return;
|
||||
|
||||
long matrixAddr = AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(libClient + 0x45A228) + 0x268) + 0xE0) + 0x40);
|
||||
AlguiMemTool.jump64(libClient + 0x45A228) + 0x268) + 0xE0)
|
||||
+ 0x40);
|
||||
|
||||
long oneselfBase = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(libClient + 0x454090) + 0x0) + 0x70) + 0x10; // 跳转指针
|
||||
long oneselfBase = AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(libClient + 0x454090) + 0x0) + 0x70) + 0x10; // 跳转指针
|
||||
|
||||
while (moveRunning) {
|
||||
try {
|
||||
@@ -279,12 +284,16 @@ moveThread = new Thread(new Runnable() {
|
||||
z += rightZ * joystickX * moveScale * 2;
|
||||
y += rightY * joystickX * moveScale;
|
||||
|
||||
AlguiMemTool.setMemoryAddrValue(String.valueOf(x), oneselfBase + 0xA0, AlguiMemTool.TYPE_FLOAT, false, true);
|
||||
AlguiMemTool.setMemoryAddrValue(String.valueOf(z), oneselfBase + 0xA4, AlguiMemTool.TYPE_FLOAT, false, true);
|
||||
AlguiMemTool.setMemoryAddrValue(String.valueOf(y), oneselfBase + 0xA8, AlguiMemTool.TYPE_FLOAT, false, true);
|
||||
AlguiMemTool.setMemoryAddrValue(String.valueOf(x), oneselfBase + 0xA0, AlguiMemTool.TYPE_FLOAT,
|
||||
false, true);
|
||||
AlguiMemTool.setMemoryAddrValue(String.valueOf(z), oneselfBase + 0xA4, AlguiMemTool.TYPE_FLOAT,
|
||||
false, true);
|
||||
AlguiMemTool.setMemoryAddrValue(String.valueOf(y), oneselfBase + 0xA8, AlguiMemTool.TYPE_FLOAT,
|
||||
false, true);
|
||||
|
||||
Thread.sleep(20);
|
||||
} catch (Exception ignore) { }
|
||||
} catch (Exception ignore) {
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -300,10 +309,9 @@ public static void stopMoveThread() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void showJoystick(Activity act) {
|
||||
if (joystick != null) return;
|
||||
if (joystick != null)
|
||||
return;
|
||||
FrameLayout root = act.findViewById(android.R.id.content);
|
||||
joystick = new JoystickView(act);
|
||||
FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(
|
||||
@@ -313,7 +321,8 @@ public static void showJoystick(Activity act) {
|
||||
}
|
||||
|
||||
public static void hideJoystick(Activity act) {
|
||||
if (joystick == null) return;
|
||||
if (joystick == null)
|
||||
return;
|
||||
FrameLayout root = act.findViewById(android.R.id.content);
|
||||
root.removeView(joystick);
|
||||
joystick = null;
|
||||
@@ -350,7 +359,6 @@ if (fetcher != null) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 设置玩家绘制开关
|
||||
public static void setDrawPlayers(boolean enable) {
|
||||
drawPlayers = enable;
|
||||
@@ -381,6 +389,11 @@ if (fetcher != null) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 构建并初始化AlguiWinDraw对象,用于ESP功能的绘制
|
||||
* @param ctx 应用上下文
|
||||
* @return 初始化完成的AlguiWinDraw对象
|
||||
*/
|
||||
private static AlguiWinDraw buildDraw(Context ctx) {
|
||||
final Paint paint = new Paint();
|
||||
paint.setAntiAlias(true);
|
||||
@@ -413,11 +426,13 @@ if (fetcher != null) {
|
||||
public boolean Start(Canvas canvas) {
|
||||
if (moduleBase == 0) {
|
||||
moduleBase = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);
|
||||
if (moduleBase == 0) return false;
|
||||
if (moduleBase == 0)
|
||||
return false;
|
||||
matrixAddr = AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(moduleBase + 0x45A228) + 0x268) + 0xE0) + 0x40);
|
||||
AlguiMemTool.jump64(moduleBase + 0x45A228) + 0x268) + 0xE0)
|
||||
+ 0x40);
|
||||
collAddr = jump(moduleBase + 0xDCBC30) + 0x3C0;
|
||||
collStart = jump(collAddr);
|
||||
}
|
||||
@@ -426,10 +441,12 @@ fetcher = new EspFetcherThread(matrixAddr, collAddr, collStart);
|
||||
fetcher.start();
|
||||
return matrixAddr > 0 && collStart > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean Update(Canvas canvas) {
|
||||
long now = System.currentTimeMillis();
|
||||
if (now - lastFrame < fii) return true;
|
||||
if (now - lastFrame < fii)
|
||||
return true;
|
||||
lastFrame = now;
|
||||
|
||||
// 1. 重新读矩阵(仍放在主线程,极快)
|
||||
@@ -442,7 +459,8 @@ public boolean Update(Canvas canvas) {
|
||||
if (drawPlayers) {
|
||||
int total = 0;
|
||||
for (EspDataCache.Entity e : EspDataCache.list)
|
||||
if (e.typeFlag == 17039361) total++;
|
||||
if (e.typeFlag == 17039361)
|
||||
total++;
|
||||
paint.setColor(Color.GREEN);
|
||||
canvas.drawText("玩家数量: " + total, 80, 40, paint);
|
||||
}
|
||||
@@ -450,24 +468,19 @@ public boolean Update(Canvas canvas) {
|
||||
// 3. 绘制实体(从缓存拿数据)
|
||||
for (EspDataCache.Entity e : EspDataCache.list) {
|
||||
if ((e.typeFlag == 17039361 && !drawPlayers) ||
|
||||
(e.typeFlag != 17039361 && !drawItems)) continue;
|
||||
(e.typeFlag != 17039361 && !drawItems))
|
||||
continue;
|
||||
|
||||
// 计算 cz(距离因子)
|
||||
float cz = matrix[3] * e.x + matrix[7] * e.z + matrix[11] * e.y + matrix[15];
|
||||
if (cz <= 0) continue; // 距离为负数或零 → 不绘制
|
||||
|
||||
if (cz <= 0)
|
||||
continue; // 距离为负数或零 → 不绘制
|
||||
|
||||
float cx = midX + (matrix[0] * e.x + matrix[4] * e.z + matrix[8] * e.y + matrix[12]) / cz * midX;
|
||||
float cy = midY - (matrix[1] * e.x + matrix[5] * e.z + matrix[9] * e.y + matrix[13]) / cz * midY;
|
||||
|
||||
int color = e.typeFlag == 17039361 ? 0xFF00FF00 : 0xFFFF00FF;
|
||||
linePaint.setColor(color);
|
||||
canvas.drawLine(midX, 0, cx, cy, linePaint);
|
||||
paint.setColor(color);
|
||||
canvas.drawText((e.typeFlag == 17039361 ? "玩家 " : "物品 ") + (int)(cz/60), (int)cx, (int)cy, paint);
|
||||
//TODO 绘制实体信息相关逻辑
|
||||
}
|
||||
|
||||
|
||||
// 绘制三维红点...(后续代码保持不变)
|
||||
final Paint redPaint = new Paint();
|
||||
redPaint.setColor(Color.RED);
|
||||
@@ -478,10 +491,12 @@ if (cz <= 0) continue; // 距离为负数或零 → 不绘制
|
||||
Float y = redPointsWorldY.get(id);
|
||||
Float z = redPointsWorldZ.get(id);
|
||||
|
||||
if (x == null || y == null || z == null) continue;
|
||||
if (x == null || y == null || z == null)
|
||||
continue;
|
||||
|
||||
float cz = matrix[3] * x + matrix[7] * y + matrix[11] * z + matrix[15];
|
||||
if (cz <= 2) continue;
|
||||
if (cz <= 2)
|
||||
continue;
|
||||
|
||||
float cx = midX + (matrix[0] * x + matrix[4] * y + matrix[8] * z + matrix[12]) / cz * midX;
|
||||
float cy = midY - (matrix[1] * x + matrix[5] * y + matrix[9] * z + matrix[13]) / cz * midY;
|
||||
@@ -494,8 +509,10 @@ if (cz <= 0) continue; // 距离为负数或零 → 不绘制
|
||||
// ...(保留你原来代码)...
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void End(SurfaceHolder holder) {}
|
||||
public void End(SurfaceHolder holder) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void UpdateCanvasSize(SurfaceHolder holder, int format, int width, int height) {
|
||||
@@ -504,6 +521,42 @@ if (cz <= 0) continue; // 距离为负数或零 → 不绘制
|
||||
midX = width / 2;
|
||||
midY = height / 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* 绘制实体位于屏幕的位置
|
||||
* @param canvas 画布
|
||||
* @param cx 屏幕X坐标
|
||||
* @param cy 屏幕Y坐标
|
||||
* @param cz 距离因子
|
||||
* @param paint 文字画笔
|
||||
*/
|
||||
private void drawEntityInfo(Canvas canvas, float cx, float cy, float cz, Paint paint) {
|
||||
int color = e.typeFlag == 17039361 ? 0xFF00FF00 : 0xFFFF00FF;
|
||||
linePaint.setColor(color);
|
||||
// 绘制点
|
||||
// 判断是否超出屏幕
|
||||
if (cx < 0 || cx > screenW || cy < 0 || cy > screenH) {
|
||||
// 绘制点 中心位于屏幕边缘
|
||||
// 调整坐标到屏幕边缘
|
||||
float adjustedCx = Math.max(0, Math.min(cx, screenW));
|
||||
float adjustedCy = Math.max(0, Math.min(cy, screenH));
|
||||
canvas.drawCircle(adjustedCx, adjustedCy, 5, paint);
|
||||
} else {
|
||||
canvas.drawCircle(cx, cy, 5, paint);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 绘制射线
|
||||
* @param canvas 画布
|
||||
* @param cx 屏幕X坐标
|
||||
* @param cy 屏幕Y坐标
|
||||
* @param cz 距离因子
|
||||
* @param linePaint 线条画笔
|
||||
*/
|
||||
private void drawRay(Canvas canvas, float cx, float cy, float cz, Paint linePaint) {
|
||||
// 绘制射线
|
||||
canvas.drawLine(cx, cy, midX, midY, linePaint);
|
||||
}
|
||||
});
|
||||
return draw;
|
||||
}
|
||||
|
||||
@@ -39,8 +39,7 @@ private static String lastSubCmd = "";
|
||||
private static boolean waterMarkEnable = false; // 开关
|
||||
private static String waterMarkContent;
|
||||
|
||||
private static final Handler sMainHandler =
|
||||
new Handler(Looper.getMainLooper());
|
||||
private static final Handler sMainHandler = new Handler(Looper.getMainLooper());
|
||||
|
||||
public static void startWatching(final String sub0Url, final String subUrl, final Context context) {
|
||||
new Thread(new Runnable() {
|
||||
@@ -58,9 +57,6 @@ masterSelfSwitch = sub0Html.contains("?开?");
|
||||
nomasterSelfSwitch = sub0Html.contains("?关?");
|
||||
String sub0Cmd = extractCommand(sub0Html);
|
||||
|
||||
|
||||
|
||||
|
||||
// 主控
|
||||
if (nomasterSelfSwitch && lingbai) {
|
||||
lingbai = false;
|
||||
@@ -72,7 +68,6 @@ String sub0Cmd = extractCommand(sub0Html);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
} else if (sub0Switch && masterSelfSwitch && sub0Cmd != null) {
|
||||
if (!lingbai) {
|
||||
lastMainCmd = sub0Cmd;
|
||||
@@ -92,13 +87,6 @@ subOn = subHtml.contains("!开!");
|
||||
nosubOn = subHtml.contains("!关!");
|
||||
String subCmd = extractCommand(subHtml);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 副控
|
||||
if ((nosubOn || !allowSub) && longtu) {
|
||||
longtu = false;
|
||||
@@ -125,7 +113,6 @@ ModuleManager.getInstance().setModuleSubtitle(
|
||||
handleCommand(subCmd.trim(), context);
|
||||
}
|
||||
|
||||
|
||||
Thread.sleep(5000);
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "轮询失败: " + e.getMessage());
|
||||
@@ -136,8 +123,6 @@ ModuleManager.getInstance().setModuleSubtitle(
|
||||
}
|
||||
}).start();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static String fetchContent(String urlString) throws Exception {
|
||||
@@ -158,13 +143,22 @@ ModuleManager.getInstance().setModuleSubtitle(
|
||||
}
|
||||
return sb.toString();
|
||||
} finally {
|
||||
if (reader != null) try { reader.close(); } catch (Exception ignored) {}
|
||||
if (conn != null) try { conn.disconnect(); } catch (Exception ignored) {}
|
||||
if (reader != null)
|
||||
try {
|
||||
reader.close();
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
if (conn != null)
|
||||
try {
|
||||
conn.disconnect();
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static String extractCommand(String html) {
|
||||
if (html == null) return null;
|
||||
if (html == null)
|
||||
return null;
|
||||
|
||||
// 1. 清理富文本
|
||||
String cleaned = html.replaceAll("<[^>]+>", " ")
|
||||
@@ -182,7 +176,8 @@ ModuleManager.getInstance().setModuleSubtitle(
|
||||
// 2. 先抓第一对 ++...++(含脏尾)
|
||||
Pattern pattern = Pattern.compile("\\+\\+([^+]+)\\+\\+");
|
||||
Matcher matcher = pattern.matcher(cleaned);
|
||||
if (!matcher.find()) return null;
|
||||
if (!matcher.find())
|
||||
return null;
|
||||
|
||||
String raw = matcher.group(1).trim();
|
||||
|
||||
@@ -197,8 +192,6 @@ ModuleManager.getInstance().setModuleSubtitle(
|
||||
return raw.isEmpty() ? null : raw;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static boolean handleCommand(String cmd, Context context) {
|
||||
if ("自杀".equals(cmd)) {
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
@@ -206,19 +199,29 @@ AlguiMemTool.setPackageName("com.vortex.celestial");//设置包名
|
||||
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss",
|
||||
AlguiMemTool.HEAD_CB);// 获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB cd模块传HEAD_CD】
|
||||
long daddr = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0xDCBC30) + 0x380) + 0x1C0)+ 0x88) + 0x38) + 0x14;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0xDCBC30) + 0x380) + 0x1C0) + 0x88) + 0x38) + 0x14;// 跳转指针
|
||||
// 跳到目标地址
|
||||
// 【32位使用
|
||||
// jump32
|
||||
// 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("-114000", daddr, AlguiMemTool.TYPE_FLOAT, false, true);// 修改目标值
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
AlguiMemTool.setPackageName("com.vortex.celestial");// 设置包名
|
||||
long sAddr1 = AlguiMemTool.getModuleBaseAddr("libclient.so:bss",
|
||||
AlguiMemTool.HEAD_CB);// 获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB cd模块传HEAD_CD】
|
||||
long daddr1 = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr1 + 0xDCBC30) + 0x380) + 0x1C0)+ 0x88) + 0x38) + 0x14;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr1 + 0xDCBC30) + 0x380) + 0x1C0) + 0x88) + 0x38) + 0x14;// 跳转指针
|
||||
// 跳到目标地址
|
||||
// 【32位使用
|
||||
// jump32
|
||||
// 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("-114000", daddr1, AlguiMemTool.TYPE_FLOAT, false, true);// 修改目标值
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
return true;
|
||||
} else if ("关闭范围".equals(cmd)) {
|
||||
ace.stopBinary("libdfw.so");ace.stopBinary("libzcfw.so");ace.stopBinary("libxfw.so");
|
||||
ace.stopBinary("libdfw.so");
|
||||
ace.stopBinary("libzcfw.so");
|
||||
ace.stopBinary("libxfw.so");
|
||||
return true;
|
||||
} else if ("30帧率".equals(cmd)) {
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
@@ -236,8 +239,12 @@ AlguiMemTool.setPackageName("com.vortex.celestial");//设置包名
|
||||
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss",
|
||||
AlguiMemTool.HEAD_CB);// 获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB
|
||||
// cd模块传HEAD_CD】
|
||||
long daddr = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0xD3FB68)+0x350)+0x3D0)+0x3C0)+0x160)+0x1F4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("9", daddr,AlguiMemTool.TYPE_FLOAT, false,true);// 修改目标值 【如果需要冻结将false改为true】
|
||||
long daddr = AlguiMemTool.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0xD3FB68) + 0x350) + 0x3D0) + 0x3C0)
|
||||
+ 0x160) + 0x1F4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("9", daddr, AlguiMemTool.TYPE_FLOAT, false, true);// 修改目标值
|
||||
// 【如果需要冻结将false改为true】
|
||||
AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
return true;
|
||||
} else if ("停止发包关".equals(cmd)) {
|
||||
@@ -246,8 +253,12 @@ AlguiMemTool.setPackageName("com.vortex.celestial");//设置包名
|
||||
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss",
|
||||
AlguiMemTool.HEAD_CB);// 获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB
|
||||
// cd模块传HEAD_CD】
|
||||
long daddr = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0xD3FB68)+0x350)+0x3D0)+0x3C0)+0x160)+0x1F4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("0.00111516414", daddr,AlguiMemTool.TYPE_FLOAT, false,true);// 修改目标值 【如果需要冻结将false改为true】
|
||||
long daddr = AlguiMemTool.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0xD3FB68) + 0x350) + 0x3D0) + 0x3C0)
|
||||
+ 0x160) + 0x1F4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("0.00111516414", daddr, AlguiMemTool.TYPE_FLOAT, false, true);// 修改目标值
|
||||
// 【如果需要冻结将false改为true】
|
||||
AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
return true;
|
||||
} else if ("O泡开".equals(cmd)) {
|
||||
@@ -289,14 +300,28 @@ return true;
|
||||
|
||||
AlguiMemTool.setPackageName("com.vortex.celestial");// 设置包名
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
long sAddr1 = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);//获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB cd模块传HEAD_CD】
|
||||
long daddr1 = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr1 + 0xDCF0C0)+0x608)+0x0)+0x88)+0x70)+0xE4;//跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("-599", daddr1, AlguiMemTool.TYPE_FLOAT,true,true);//修改目标值 【如果需要冻结将false改为true】
|
||||
long sAddr1 = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);// 获取模块基址
|
||||
// 【xa模块传HEAD_XA
|
||||
// cb模块传HEAD_CB
|
||||
// cd模块传HEAD_CD】
|
||||
long daddr1 = AlguiMemTool.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr1 + 0xDCF0C0) + 0x608) + 0x0) + 0x88)
|
||||
+ 0x70) + 0xE4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("-599", daddr1, AlguiMemTool.TYPE_FLOAT, true, true);// 修改目标值
|
||||
// 【如果需要冻结将false改为true】
|
||||
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
long sAddr21 = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);//获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB cd模块传HEAD_CD】
|
||||
long daddr21 = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr21 + 0xCAF7F0)+0x500)+0x1E8)+0x100)+0x88)+0x54;//跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("-599", daddr21, AlguiMemTool.TYPE_FLOAT,true,true);//修改目标值 【如果需要冻结将false改为true】
|
||||
long sAddr21 = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);// 获取模块基址
|
||||
// 【xa模块传HEAD_XA
|
||||
// cb模块传HEAD_CB
|
||||
// cd模块传HEAD_CD】
|
||||
long daddr21 = AlguiMemTool.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr21 + 0xCAF7F0) + 0x500) + 0x1E8) + 0x100)
|
||||
+ 0x88) + 0x54;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("-599", daddr21, AlguiMemTool.TYPE_FLOAT, true, true);// 修改目标值
|
||||
// 【如果需要冻结将false改为true】
|
||||
AlguiMemTool.setFreezeDelayMs(20);// 设置冻结修改延迟【毫秒】
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
return true;
|
||||
@@ -304,14 +329,28 @@ return true;
|
||||
|
||||
AlguiMemTool.setPackageName("com.vortex.celestial");// 设置包名
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
long sAddr1 = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);//获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB cd模块传HEAD_CD】
|
||||
long daddr1 = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr1 + 0xDCF0C0)+0x608)+0x0)+0x88)+0x70)+0xE4;//跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("0", daddr1, AlguiMemTool.TYPE_FLOAT,false,true);//修改目标值 【如果需要冻结将false改为true】
|
||||
long sAddr1 = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);// 获取模块基址
|
||||
// 【xa模块传HEAD_XA
|
||||
// cb模块传HEAD_CB
|
||||
// cd模块传HEAD_CD】
|
||||
long daddr1 = AlguiMemTool.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr1 + 0xDCF0C0) + 0x608) + 0x0) + 0x88)
|
||||
+ 0x70) + 0xE4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("0", daddr1, AlguiMemTool.TYPE_FLOAT, false, true);// 修改目标值
|
||||
// 【如果需要冻结将false改为true】
|
||||
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
long sAddr21 = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);//获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB cd模块传HEAD_CD】
|
||||
long daddr21 = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr21 + 0xCAF7F0)+0x500)+0x1E8)+0x100)+0x88)+0x54;//跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("0", daddr21, AlguiMemTool.TYPE_FLOAT,false,true);//修改目标值 【如果需要冻结将false改为true】
|
||||
long sAddr21 = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);// 获取模块基址
|
||||
// 【xa模块传HEAD_XA
|
||||
// cb模块传HEAD_CB
|
||||
// cd模块传HEAD_CD】
|
||||
long daddr21 = AlguiMemTool.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(
|
||||
AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr21 + 0xCAF7F0) + 0x500) + 0x1E8) + 0x100)
|
||||
+ 0x88) + 0x54;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("0", daddr21, AlguiMemTool.TYPE_FLOAT, false, true);// 修改目标值
|
||||
// 【如果需要冻结将false改为true】
|
||||
AlguiMemTool.clearResultList();// 清空之前的搜索结果
|
||||
return true;
|
||||
} else if ("万物偏移开".equals(cmd)) { // 原逻辑...
|
||||
@@ -320,7 +359,8 @@ AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
AlguiMemTool.setPackageName("com.vortex.celestial");// 设置包名
|
||||
AlguiMemTool.setMemoryArea(AlguiMemTool.RANGE_C_BSS);// 设置内存
|
||||
AlguiMemTool.MemorySearch("1", AlguiMemTool.TYPE_FLOAT);// 内存搜索 【主特征码】
|
||||
AlguiMemTool.MemoryOffsetWrite("0.65211695", AlguiMemTool.TYPE_FLOAT, 0,false,true);// 修改值结果偏移修改 【如果需要冻结将false改为true】
|
||||
AlguiMemTool.MemoryOffsetWrite("0.65211695", AlguiMemTool.TYPE_FLOAT, 0, false, true);// 修改值结果偏移修改
|
||||
// 【如果需要冻结将false改为true】
|
||||
AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
return true;
|
||||
} else if ("万物偏移关".equals(cmd)) { // 原逻辑...
|
||||
@@ -329,14 +369,21 @@ AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
AlguiMemTool.setPackageName("com.vortex.celestial");// 设置包名
|
||||
AlguiMemTool.setMemoryArea(AlguiMemTool.RANGE_C_BSS);// 设置内存
|
||||
AlguiMemTool.MemorySearch("0.65211695", AlguiMemTool.TYPE_FLOAT);// 内存搜索 【主特征码】
|
||||
AlguiMemTool.MemoryOffsetWrite("1", AlguiMemTool.TYPE_FLOAT, 0,false,true);// 修改值结果偏移修改 【如果需要冻结将false改为true】
|
||||
AlguiMemTool.MemoryOffsetWrite("1", AlguiMemTool.TYPE_FLOAT, 0, false, true);// 修改值结果偏移修改
|
||||
// 【如果需要冻结将false改为true】
|
||||
AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
return true;
|
||||
} else if ("无序挥击开".equals(cmd)) { // 原逻辑...
|
||||
AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
AlguiMemTool.setPackageName("com.vortex.celestial");// 设置包名
|
||||
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss",AlguiMemTool.HEAD_CB);// 获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB cd模块传HEAD_CD】
|
||||
long daddr = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x461420) + 0x6D8) + 0x7C0)+ 0x7B0) + 0x608) + 0x7E4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);// 获取模块基址
|
||||
// 【xa模块传HEAD_XA
|
||||
// cb模块传HEAD_CB
|
||||
// cd模块传HEAD_CD】
|
||||
long daddr = AlguiMemTool.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x461420) + 0x6D8) + 0x7C0) + 0x7B0)
|
||||
+ 0x608) + 0x7E4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("9999", daddr, AlguiMemTool.TYPE_FLOAT, false, true);// 修改目标值
|
||||
AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
|
||||
@@ -344,8 +391,14 @@ return true;
|
||||
} else if ("无序挥击关".equals(cmd)) { // 原逻辑...
|
||||
AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
AlguiMemTool.setPackageName("com.vortex.celestial");// 设置包名
|
||||
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss",AlguiMemTool.HEAD_CB);// 获取模块基址 【xa模块传HEAD_XA cb模块传HEAD_CB cd模块传HEAD_CD】
|
||||
long daddr = AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x461420) + 0x6D8) + 0x7C0)+ 0x7B0) + 0x608) + 0x7E4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
long sAddr = AlguiMemTool.getModuleBaseAddr("libclient.so:bss", AlguiMemTool.HEAD_CB);// 获取模块基址
|
||||
// 【xa模块传HEAD_XA
|
||||
// cb模块传HEAD_CB
|
||||
// cd模块传HEAD_CD】
|
||||
long daddr = AlguiMemTool.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool
|
||||
.jump64(AlguiMemTool.jump64(AlguiMemTool.jump64(sAddr + 0x461420) + 0x6D8) + 0x7C0) + 0x7B0)
|
||||
+ 0x608) + 0x7E4;// 跳转指针 跳到目标地址 【32位使用 jump32 64位使用jump64】
|
||||
AlguiMemTool.setMemoryAddrValue("-185", daddr, AlguiMemTool.TYPE_FLOAT, false, true);// 修改目标值
|
||||
AlguiMemTool.clearResultList();// 修改完成 则清空这次的搜索结果
|
||||
|
||||
@@ -360,12 +413,12 @@ return false; // 未命中
|
||||
* 通过 handleCommand 是否能匹配来判断指令是否有效
|
||||
*/
|
||||
private static String makeSubtitlePrefix(String cmd) {
|
||||
if (cmd == null || cmd.isEmpty()) return "说:";
|
||||
if (cmd == null || cmd.isEmpty())
|
||||
return "说:";
|
||||
boolean hit = handleCommand(cmd, null); // 只探测,不真执行
|
||||
return hit ? "执行:" : "说:";
|
||||
}
|
||||
|
||||
|
||||
// 获取当前执行者标识的 getter 方法
|
||||
public static String getNama() {
|
||||
return nama;
|
||||
|
||||
Reference in New Issue
Block a user