Skip to content

Commit d460689

Browse files
committed
2 parents f46305d + d9850d0 commit d460689

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pvz-tools",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "植物大战僵尸修改器 By Nodejs.",
55
"main": "./out/main/index.js",
66
"author": "https://github.com/chinjiaqing",

src/main/services/game/game.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ export function getGameProcessHandler() {
2525
}
2626

2727
function getModuleBaseAddr(handler: Process, moduleName: string = GameExeName) {
28+
const nameStr = moduleName.toLocaleLowerCase()
2829
const modules = memoryJs.getModules(handler.th32ProcessID) as Module[]
29-
const mod = modules.find((m) => m.szModule.toLowerCase() === moduleName)
30+
const mod = modules.find((m) => m.szModule.toLowerCase() === nameStr)
3031
return mod?.modBaseAddr
3132
}
3233

0 commit comments

Comments
 (0)