diff options
author | aap <aap@papnet.eu> | 2020-03-28 09:37:04 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-03-28 09:37:04 +0100 |
commit | 739e80614db70f726c47180173ba19688bec5167 (patch) | |
tree | 83575bbe72328798dd21289de0a869e7024c69ae /src/animation/AnimBlendClumpData.cpp | |
parent | Merge branch 'master' of github.com:gtamodding/re3 (diff) | |
download | re3-739e80614db70f726c47180173ba19688bec5167.tar re3-739e80614db70f726c47180173ba19688bec5167.tar.gz re3-739e80614db70f726c47180173ba19688bec5167.tar.bz2 re3-739e80614db70f726c47180173ba19688bec5167.tar.lz re3-739e80614db70f726c47180173ba19688bec5167.tar.xz re3-739e80614db70f726c47180173ba19688bec5167.tar.zst re3-739e80614db70f726c47180173ba19688bec5167.zip |
Diffstat (limited to 'src/animation/AnimBlendClumpData.cpp')
-rw-r--r-- | src/animation/AnimBlendClumpData.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/animation/AnimBlendClumpData.cpp b/src/animation/AnimBlendClumpData.cpp index 06625eb5..cc4281d6 100644 --- a/src/animation/AnimBlendClumpData.cpp +++ b/src/animation/AnimBlendClumpData.cpp @@ -36,9 +36,19 @@ CAnimBlendClumpData::ForAllFrames(void (*cb)(AnimBlendFrameData*, void*), void * cb(&frames[i], arg); } +#include <new> + +class CAnimBlendClumpData_ : public CAnimBlendClumpData +{ +public: + CAnimBlendClumpData *ctor(void) { return ::new (this) CAnimBlendClumpData(); } + void dtor(void) { this->CAnimBlendClumpData::~CAnimBlendClumpData(); } +}; + + STARTPATCHES - InjectHook(0x401880, &CAnimBlendClumpData::ctor, PATCH_JUMP); - InjectHook(0x4018B0, &CAnimBlendClumpData::dtor, PATCH_JUMP); + InjectHook(0x401880, &CAnimBlendClumpData_::ctor, PATCH_JUMP); + InjectHook(0x4018B0, &CAnimBlendClumpData_::dtor, PATCH_JUMP); InjectHook(0x4018F0, &CAnimBlendClumpData::SetNumberOfFrames, PATCH_JUMP); InjectHook(0x401930, &CAnimBlendClumpData::ForAllFrames, PATCH_JUMP); ENDPATCHES |