rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
819 stars 98 forks source link

Attempt to match against module name, only use path as a last resource #259

Open rdbo opened 1 month ago

rdbo commented 1 month ago

E.g client.dll will match against nottheclient.dll It should try as hard as it can to match client.dll only, and only match path if there is no alternative or smth

rdbo commented 1 month ago

maybe do:

if path_separator in mod_name: match_path() else: match_name()

rdbo commented 1 month ago

Or

path_match = ... name_match = ...

if (name_match) return name_match; else return path_match