2 parents f46305d + d9850d0 commit d460689Copy full SHA for d460689
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "pvz-tools",
3
- "version": "0.0.1",
+ "version": "0.0.2",
4
"description": "植物大战僵尸修改器 By Nodejs.",
5
"main": "./out/main/index.js",
6
"author": "https://github.com/chinjiaqing",
src/main/services/game/game.service.ts
@@ -25,8 +25,9 @@ export function getGameProcessHandler() {
25
}
26
27
function getModuleBaseAddr(handler: Process, moduleName: string = GameExeName) {
28
+ const nameStr = moduleName.toLocaleLowerCase()
29
const modules = memoryJs.getModules(handler.th32ProcessID) as Module[]
- const mod = modules.find((m) => m.szModule.toLowerCase() === moduleName)
30
+ const mod = modules.find((m) => m.szModule.toLowerCase() === nameStr)
31
return mod?.modBaseAddr
32
33
0 commit comments