From be919a3e8d008664249a2575e0742bd21edb8f2f Mon Sep 17 00:00:00 2001 From: TeaTing <82816129+Xcating@users.noreply.github.com> Date: Sat, 2 Nov 2024 21:39:44 +0800 Subject: [PATCH] fix --- CHANGELOG.md | 4 ++-- GhTrTool/Constant.h | 4 ++-- GhTrTool/GhTr.cpp | 4 ++-- GhTrTool/GhTrTool.rc | Bin 38988 -> 39092 bytes README.md | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e2babe..d17421c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ -# GhTrTool 0.12b ~ [2024-11-02] +# GhTrTool 0.12c ~ [2024-11-02] ## 完整更新日志 ### 更新 -- 支持最新版0.17c版本Perfect Voyage +- 修复一个bug ### 正在进行 - 地址数值常数化 diff --git a/GhTrTool/Constant.h b/GhTrTool/Constant.h index 4d7cb07..2ba585a 100644 --- a/GhTrTool/Constant.h +++ b/GhTrTool/Constant.h @@ -11,8 +11,8 @@ CONST DWORD GAME_PLANT_SUB_SUN_OFFSET = 0xA0699;//种植植物阳光减少 偏 CONST CHAR* GAME_PLANT_SUB_SUN_PATCH_OPCODE = "\x90\x90\x90\x90\x90\x90"; //种植植物阳光减少_阳光不减少 操作码 CONST CHAR* GAME_PLANT_SUB_SUN_ORIGINAL_OPCODE = "\x29\xBE\x84\x03\x00\x00"; //种植植物阳光减少_原码 操作码 CONST DWORD GAME_PLANT_NO_CD_OFFSET = 0x1062B9; //重新种植更新当前冷却 偏移 [BaseAddress+GAME_PLANT_NO_CD_OFFSET] -CONST CHAR* GAME_CARD_NO_CD_PATCH_OPCODE = "\xC7\x42\x24\x00\x00\x00\x00\x90\x90\x90"; //重新种植更新当前冷却_重置冷却设为0 操作码 -CONST CHAR* GAME_CARD_NO_CD_ORIGINAL_OPCODE = "\x89\x42\x24\xC7\x42\x20\x00\x00\x00\x00"; //重新种植更新当前冷却_原码 操作码 +CONST CHAR* GAME_CARD_NO_CD_PATCH_OPCODE = "\xC7\x42\x28\x00\x00\x00\x00\x90\x90\x90"; //重新种植更新当前冷却_重置冷却设为0 操作码 +CONST CHAR* GAME_CARD_NO_CD_ORIGINAL_OPCODE = "\x89\x42\x28\xC7\x42\x20\x00\x00\x00\x00"; //重新种植更新当前冷却_原码 操作码 CONST DWORD GAME_PLANT_IGNORE_CD_OFFSET = 0x10657D; //判断冷却是否结束 偏移 [BaseAddress+GAME_PLANT_IGNORE_CD_OFFSET] CONST CHAR* GAME_CARD_IGNORE_CD_PATCH_OPCODE = "\x90\x90"; //判断冷却是否结束_不判断 操作码 CONST CHAR* GAME_CARD_IGNORE_CD_ORIGINAL_OPCODE = "\x39\x08"; //判断冷却是否结束_原码 操作码 \ No newline at end of file diff --git a/GhTrTool/GhTr.cpp b/GhTrTool/GhTr.cpp index f169ea9..73b4f71 100644 --- a/GhTrTool/GhTr.cpp +++ b/GhTrTool/GhTr.cpp @@ -223,13 +223,13 @@ BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM l_param) { std::wstring wstr = (std::wstringstream() << L"Plants Vs Zombies GhTr ~ Perfect Voyage " << L"ver.0.17c - [Debug] [已被GhTrTool修改] " - << L"[βver.0.12b] [" + << L"[βver.0.12c] [" << millis << L"]") .str(); #else std::wstring wstr = (std::wstringstream() << L"Plants Vs Zombies GhTr ~ Perfect Voyage " - << L"ver.0.17c - [已被GhTrTool修改] [ver.0.12b] [" + << L"ver.0.17c - [已被GhTrTool修改] [ver.0.12c] [" << millis << L"]" << L" [Save" << dwNum<(KxU=IT4P@a|HL{G)GPZq8FwIVjo=p<_lsXj9>>;Oi2RM98*)E z4objbnbc$jX{F6_(pOj+lP4EiNKf9N$hKKT@g1X7GQ*d&4XIC4ug6RMf9KB|$>68u zm&8!Ykj}7KK{<Qf;gRcOI30nxm9N`RImklC1}yZKG#7Dk}t!t8#TN&Rh; z`XM2d*VQpuuVV{1WDGi5CJS)0KxIMU0+I!VOF>r~P?a7yTnvCTC|qLtmVo6Exm)ZUG=me delta 486 zcmdn8k?G6^rVSC?lLaIUCOhzkfoX}(w#g5;jlldlA}y2Wh;#t)4j?}QEMLJN1C@u- zVL*Ak$qJKVfV9D60coYlAJ|1E7l?~Z{vlX}#Vn8-j>&!!AxLr{{c&h~h8{BF+$`AiY!;A~U}H?0{83qYvy0*vM!6)0FKHW6pQc`qm--K8 z`RS)JCNrdONcAYvN#7i#oW;bLw0W=UQz59XeHL%TflNaS+07>cG$etNA2S~^f+RD= zH^0iRkeOW2rw0xq5Df~lJ>6}S7j!lOaogqvomPyKLE!`v6yRoqO6q{aXhEkQ*#FD= xmLO{aYJ`Y`!UbX&NPQd