Hi everyone!
When Casey did the dll autoreload system, he said it could be extended to handle things like fixing function pointers after a dll reload, but he didn't get to say how he'd do it. And well, I kinda need that functionality to do dynamic dispatch in a game I'm working on :(
Off the top of my head I can think of manual ways to do it (like storing an enum instead of the function pointers, then use the enum to switch between the function pointers...) or even piggybacking into the dll main function and manually do the patching from there, but both approaches seem fragile and kinda hackish.
I'd love to make this work in a way that doesn't add much busywork when massaging the game code into shape. Any ideas?
Thanks a bunch in advance!
(Maybe Casey already said something about this on one of the later streams, but I'm now on a 10GB/month plan and I can't afford to watch the videos every day... If that's indeed the case, I'm really sorry for the noise here)