Closed p410n3 closed 6 years ago
Here some more in depth explanation:
The module exports either the async or the synchronous version of the readmemory function here in the index.js of memoryJS:
readMemory(handle, address, dataType, callback) {
if (arguments.length === 2) {
return memoryjs.readMemory(handle, address, dataType.toLowerCase());
}
memoryjs.readMemory(handle, address, dataType.toLowerCase(), callback);
},
The error is here:
if (arguments.length === 2)
The previous version of memoryJS used only two arguments for the sync function and 3 for the async. So the 2 needs to be a 3, because it assumes I am trying to call the async function, which I am not.
And as you see, without my fix the examples inside the modules throws errors too.
at Object.<anonymous> (X:\Dokumente\p410n3.JS\node_modules\memoryjs\example1.js:86:61)
Given that, I know its an error in memoryJS.
You can confirm this by installing memoryJS and then doing:
cd ./node_modules/memoryjs
node example1.js
Confirming, needs to be === 3
I added a fix for findpattern too. Same problem
EDIT: Its in the pull req I made btw