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/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
784 stars 91 forks source link

Store module path on lm_module_t #68

Closed rdbo closed 1 year ago

rdbo commented 1 year ago

Not sure if this is the way to go, but it is an idea that might make libmem simpler Just adding a lm_tchar_t path[LM_PATH_MAX]; on the lm_module_t struct.

rdbo commented 1 year ago

LM_PATH_MAX can be relatively big, like 4096 bytes, which is a bit too much to have allocated in the stack without necessity. Does not sound like a good idea to put it in the struct.