Fix an issue where the AOB scan could crash the game. log removal.
This commit is contained in:
@@ -224,8 +224,6 @@ uint8_t* Memory::AOBScanInternal(uint8_t* base, const char* label, size_t size,
|
||||
|
||||
if (pattern_bytes.empty()) return nullptr;
|
||||
|
||||
if (logger) logger->info("Scanning JIT method region: 0x{:X} - 0x{:X}", reinterpret_cast<uintptr_t>(base), reinterpret_cast<uintptr_t>(base + size));
|
||||
|
||||
MEMORY_BASIC_INFORMATION mbi{};
|
||||
|
||||
for (uint8_t* current = base; current < base + size;) {
|
||||
@@ -262,7 +260,8 @@ uint8_t* Memory::AOBScanInternal(uint8_t* base, const char* label, size_t size,
|
||||
}
|
||||
|
||||
if (match) {
|
||||
LOG_SIGNATURE_FOUND(label, reinterpret_cast<uintptr_t>(scanStart + i));
|
||||
if (logger)
|
||||
LOG_SIGNATURE_FOUND(label, reinterpret_cast<uintptr_t>(scanStart + i));
|
||||
return scanStart + i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user