diff options
author | erorcun <erayorcunus@gmail.com> | 2020-03-12 00:33:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-12 00:33:55 +0100 |
commit | 3e78600420e4ba0f49a140dd365f44fd600ec057 (patch) | |
tree | df50a5dc9037b336d48e12bfc8f2394592808c8e /src/objects/DummyObject.cpp | |
parent | Merge pull request #343 from Nick007J/master (diff) | |
parent | Merge branch 'master' into erorcun (diff) | |
download | re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.gz re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.bz2 re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.lz re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.xz re3-3e78600420e4ba0f49a140dd365f44fd600ec057.tar.zst re3-3e78600420e4ba0f49a140dd365f44fd600ec057.zip |
Diffstat (limited to 'src/objects/DummyObject.cpp')
-rw-r--r-- | src/objects/DummyObject.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/objects/DummyObject.cpp b/src/objects/DummyObject.cpp index 41b15129..9649cf7a 100644 --- a/src/objects/DummyObject.cpp +++ b/src/objects/DummyObject.cpp @@ -16,8 +16,12 @@ class CDummyObject_ : public CDummyObject { public: void dtor(void) { CDummyObject::~CDummyObject(); } + CDummyObject *ctor(void) { return ::new (this) CDummyObject(); } + CDummyObject *ctor(CObject *obj) { return ::new (this) CDummyObject(obj); } }; STARTPATCHES + InjectHook(0x4BAAF0, (CDummyObject* (CDummyObject::*)(void)) &CDummyObject_::ctor, PATCH_JUMP); + InjectHook(0x4BAB10, (CDummyObject* (CDummyObject::*)(CObject*)) &CDummyObject_::ctor, PATCH_JUMP); InjectHook(0x4BAB70, &CDummyObject_::dtor, PATCH_JUMP); -ENDPATCHES +ENDPATCHES
\ No newline at end of file |