Browse Source

Adjusted memory scanner to obtain its data by reference to prevent creating copies of data.

pull/45/head
atom0s 7 years ago
parent
commit
dba1984da3
  1. BIN
      Ashita.dll
  2. BIN
      injector.exe
  3. 2
      plugins/ADK/AS_Memory.h

BIN
Ashita.dll

Binary file not shown.

BIN
injector.exe

Binary file not shown.

2
plugins/ADK/AS_Memory.h

@ -50,7 +50,7 @@ namespace Ashita @@ -50,7 +50,7 @@ namespace Ashita
* @param {uintptr_t} count - The result count to use if the pattern is found multiple times.
* @returns {uintptr_t} The address where the pattern was located, 0 otherwise.
*/
static uintptr_t FindPattern(std::vector<uint8_t> data, uintptr_t baseAddress, const char* pattern, uintptr_t offset, uintptr_t count)
static uintptr_t FindPattern(const std::vector<uint8_t>& data, uintptr_t baseAddress, const char* pattern, uintptr_t offset, uintptr_t count)
{
// Ensure the incoming pattern is properly aligned..
if (strlen(pattern) % 2 > 0)

Loading…
Cancel
Save