diff --git a/BigBaseV2/src/memory/range.cpp b/BigBaseV2/src/memory/range.cpp index 1853b4f6..0372448e 100644 --- a/BigBaseV2/src/memory/range.cpp +++ b/BigBaseV2/src/memory/range.cpp @@ -107,23 +107,6 @@ namespace memory return true; } - handle range::bruteforce_scan(pattern const& sig) - { - auto data = sig.m_bytes.data(); - auto length = sig.m_bytes.size(); - - const auto scan_end = m_size - length; - for (std::uintptr_t i{}; i != scan_end; ++i) - { - if (pattern_matches(m_base.add(i).as(), data, length)) - { - return m_base.add(i); - } - } - - return nullptr; - } - std::vector range::scan_all(pattern const &sig) { std::vector result{}; diff --git a/BigBaseV2/src/memory/range.hpp b/BigBaseV2/src/memory/range.hpp index 90b13254..0ba302c4 100644 --- a/BigBaseV2/src/memory/range.hpp +++ b/BigBaseV2/src/memory/range.hpp @@ -17,7 +17,6 @@ namespace memory bool contains(handle h); handle scan(pattern const& sig); - handle bruteforce_scan(pattern const& sig); std::vector scan_all(pattern const& sig); protected: handle m_base; diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index 9e81800b..28f796c8 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -424,13 +424,13 @@ namespace big /** * Freemode thread restorer through VM patch */ - if (auto pat1 = mem_region.bruteforce_scan("3b 0a 0f 83 ? ? ? ? 48 ff c7")) + if (auto pat1 = mem_region.scan("3b 0a 0f 83 ? ? ? ? 48 ff c7")) { memory::byte_patch::make(pat1.add(2).as(), 0xc9310272); memory::byte_patch::make(pat1.add(6).as(), 0x9090); } - if (auto pat2 = mem_region.bruteforce_scan("3b 0a 0f 83 ? ? ? ? 49 03 fa")) + if (auto pat2 = mem_region.scan("3b 0a 0f 83 ? ? ? ? 49 03 fa")) { memory::byte_patch::make(pat2.add(2).as(), 0xc9310272); memory::byte_patch::make(pat2.add(6).as(), 0x9090);