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

New internal layout #190

Closed rdbo closed 1 month ago

rdbo commented 4 months ago

Currently, libmem's internal layout is very entangled and messy, abusing procedural macros and doing crazy hacks to get it working. While it does work, libmem becomes exponentially harder to maintain under these conditions. So here is my proposal for a new internal layout that should give me less headache once it's finished: image This new layout tackles problems like:

While it is only a sketch, it does help me visualise what should be done to make the codebase more neat and tidy.

rdbo commented 4 months ago

image Possible directory structure

rdbo commented 4 months ago

image

rdbo commented 4 months ago

Perhaps call the internals winutils and posixutils

rdbo commented 1 month ago

Done