Get class vtable address without calling constructor

4 days ago 9
ARTICLE AD BOX

I am working on a serialize program for Havok physics as a project. I made most of the format already, except the classes that have virtual functions. I have no way to get the correct pointer to the vtable without calling the object constructor. This is bad cause some Havok classes dont have a default constructor.

What I curently do is get the class address (from the file) and assign the pointer to the class. but I also need to patch the class at the location with the vptr. Is there any way to do this without resorting to an absurd amount of hacks for each class type?

Read Entire Article