Closed tsuza closed 7 months ago
Alright, after wasting hours upon hours, I've found out that it was the asi loader somehow causing the crash (?????????). Loading the DLL through other means makes the detour work just fine. I'll be closing this issue. Sorry for opening an issue that ended up being caused by something else.
All good, glad you were able to find your issue!
Hello. I've been trying to detour Half-Life 1's
LoadLibraryA
, though whenever I load it, the program entirely crashes. The hooks is properly initialized. It looks like it crashes right beforeloadlibrarya_detour
gets called ( or at least shortly after it gets enabled ). I attached a debugger to it to see what's the cause, and it's something caused by the code below. I'm unsure whether I'm doing something wrong or what. I also tried copying-and-pasting the example provided in the repository, but it crashes regardless.The game is 32bit. I'm compiling my dll as
i686-pc-windows-msvc
.