r/C_Programming • u/Blayer98 • Oct 13 '26
Question Difficulties with MinHook
Hi there, so I’ve been trying to patch out a piece of code in The Sims Legacy Collection that disables the -debug_objects command line from being enabled, but both MinHook and CMake are giving me such a hard time that idk what else to do or where to ask… There are no tutorials AT ALL for compiling MinHook with MinGW-W64-gcc, only for Visual Studio (not Code!) which I can’t use because I’m on Arch Linux…
If anyone could advise me please I’d really appreciate it…
3
Upvotes
View all comments
Show parent comment
1
u/Blayer98 Oct 14 '26
I did, but I was confused on what to do, it created a MinHook.dll, but I want to create a “.asi” file for Ultimate ASI Loader and patch the “mov BYTE PTR” to instead be NOP’ed out, so I didn’t understand how to do it with the MinGW script.