Closed GrahamBest closed 7 years ago
It's due to your use of semicolon, notice the difference:
let mut hook = unsafe {
DetourStruct.initialize(createmove_hook, closure_for_createmove) // <-- here
};
Wow, I'm really dumb. Thanks for this!!! I got it alll figured out :)
Seems to return a (). Therefore I can't access any elements.
Heres my detour struct. Thanks!