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
738 stars 90 forks source link

Reconsider uses of `process->bits` #226

Open rdbo opened 1 month ago

rdbo commented 1 month ago

Now that the processes store their architecture in lm_process_t, perhaps the use of process->bits is no longer required (or should be minimized) Another thing that should be analyzed is functions like generate_hook_payload and ptrace functions that take bits as parameters

rdbo commented 1 month ago

Another thing to consider before going deep on this: architectures are still compiled separately. So if bits is not enough to distinguish one architecture from another (e.g x86 from x64), maybe it's time to create a port for that specific architecture, while still using bits for the architectures that allow for it.