2019-07-08 02:46:42 -04:00
|
|
|
#include "common.h"
|
|
|
|
#include "patcher.h"
|
|
|
|
#include "Instance.h"
|
|
|
|
|
2020-01-23 13:08:42 -05:00
|
|
|
void
|
|
|
|
CInstance::Shutdown()
|
|
|
|
{
|
|
|
|
GetMatrix().Detach();
|
|
|
|
}
|
|
|
|
|
2019-07-08 02:46:42 -04:00
|
|
|
class CInstance_ : public CInstance
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void dtor() { CInstance::~CInstance(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
STARTPATCHES
|
|
|
|
InjectHook(0x50BE90, &CInstance_::dtor, PATCH_JUMP);
|
2020-01-23 13:08:42 -05:00
|
|
|
InjectHook(0x50B850, &CInstance::Shutdown, PATCH_JUMP);
|
2019-07-08 02:46:42 -04:00
|
|
|
ENDPATCHES
|