2019-05-15 14:52:37 +00:00
|
|
|
#include "common.h"
|
2019-06-30 10:59:55 +00:00
|
|
|
#include "patcher.h"
|
2019-05-15 14:52:37 +00:00
|
|
|
#include "rpworld.h"
|
|
|
|
#include "Treadable.h"
|
|
|
|
#include "Pools.h"
|
|
|
|
|
|
|
|
void *CTreadable::operator new(size_t sz) { return CPools::GetTreadablePool()->New(); }
|
|
|
|
void CTreadable::operator delete(void *p, size_t sz) { CPools::GetTreadablePool()->Delete((CTreadable*)p); }
|
2019-06-30 10:59:55 +00:00
|
|
|
|
2019-07-08 06:46:42 +00:00
|
|
|
class CTreadable_ : public CTreadable
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void dtor(void) { CTreadable::~CTreadable(); }
|
|
|
|
};
|
|
|
|
|
2019-06-30 10:59:55 +00:00
|
|
|
STARTPATCHES
|
2019-07-08 06:46:42 +00:00
|
|
|
InjectHook(0x405A10, &CTreadable_::dtor, PATCH_JUMP);
|
|
|
|
ENDPATCHES
|