cleaned up patching of virtual functions; started CAutomobile

This commit is contained in:
aap 2019-07-08 08:46:42 +02:00
commit 12af85ca3d
64 changed files with 771 additions and 278 deletions

View file

@ -9,6 +9,12 @@ CBoat::CBoat(int mi, uint8 owner)
WRAPPER CBoat* CBoat::ctor(int, uint8) { EAXJMP(0x53E3E0); }
class CBoat_ : public CBoat
{
public:
void dtor() { CBoat::~CBoat(); };
};
STARTPATCHES
InjectHook(0x53E790, &CBoat::dtor, PATCH_JUMP);
ENDPATCHES
InjectHook(0x53E790, &CBoat_::dtor, PATCH_JUMP);
ENDPATCHES