2019-05-15 10:52:37 -04:00
|
|
|
#include "common.h"
|
2019-06-30 06:59:55 -04:00
|
|
|
#include "patcher.h"
|
2019-05-15 10:52:37 -04: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 06:59:55 -04:00
|
|
|
|
|
|
|
STARTPATCHES
|
|
|
|
InjectHook(0x405A10, &CTreadable::dtor, PATCH_JUMP);
|
|
|
|
ENDPATCHES
|