mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-18 06:27:46 +00:00
19 lines
483 B
C++
19 lines
483 B
C++
#include "common.h"
|
|
#include "patcher.h"
|
|
#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); }
|
|
|
|
class CTreadable_ : public CTreadable
|
|
{
|
|
public:
|
|
void dtor(void) { CTreadable::~CTreadable(); }
|
|
};
|
|
|
|
STARTPATCHES
|
|
InjectHook(0x405A10, &CTreadable_::dtor, PATCH_JUMP);
|
|
ENDPATCHES
|