From d928c40dd7bbd1e8257594d8bb5410b0c25acd05 Mon Sep 17 00:00:00 2001 From: krystalgamer Date: Mon, 27 May 2024 19:51:40 +0200 Subject: [PATCH] Shouldnt_DoPhysics_Be_Virtual for blackcat, carnage, platform, spclone, torch and venom --- blackcat.cpp | 11 +++++++++++ blackcat.h | 3 +++ carnage.cpp | 10 ++++++++++ carnage.h | 2 ++ platform.cpp | 10 ++++++++++ platform.h | 5 ++++- spclone.cpp | 10 ++++++++++ spclone.h | 2 ++ superock.cpp | 9 +++++++++ superock.h | 2 ++ torch.cpp | 10 ++++++++++ torch.h | 2 ++ venom.cpp | 10 ++++++++++ venom.h | 2 ++ 14 files changed, 87 insertions(+), 1 deletion(-) diff --git a/blackcat.cpp b/blackcat.cpp index 71c55cf..cbec4cd 100644 --- a/blackcat.cpp +++ b/blackcat.cpp @@ -43,6 +43,17 @@ void BlackCat_CreateBlackCat(const unsigned int *stack, unsigned int *result) *result = reinterpret_cast(new CBlackCat(v2, v3)); } + +// @Ok +void CBlackCat::Shouldnt_DoPhysics_Be_Virtual(void) +{ + this->DoPhysics(); +} + +// @TODO +void CBlackCat::DoPhysics(void) +{} + void validate_CBlackCat(void){ VALIDATE_SIZE(CBlackCat, 0x354); diff --git a/blackcat.h b/blackcat.h index 8bd8a75..983fcda 100644 --- a/blackcat.h +++ b/blackcat.h @@ -7,6 +7,9 @@ class CBlackCat : public CBaddy { public: EXPORT CBlackCat(int*, int); + EXPORT void Shouldnt_DoPhysics_Be_Virtual(void); + EXPORT void DoPhysics(void); + int field_324; int field_328; int field_32C; diff --git a/carnage.cpp b/carnage.cpp index 5850b92..bec49cf 100644 --- a/carnage.cpp +++ b/carnage.cpp @@ -76,6 +76,16 @@ void CSonicBubble::SetScale(int scale) this->mFlags |= 0x200; } +// @Ok +void CCarnage::Shouldnt_DoPhysics_Be_Virtual(void) +{ + this->DoPhysics(); +} + +// @TODO +void CCarnage::DoPhysics(void) +{} + void validate_CCarnage(void){ VALIDATE_SIZE(CCarnage, 0x37C); diff --git a/carnage.h b/carnage.h index 1dfeff1..eb3469b 100644 --- a/carnage.h +++ b/carnage.h @@ -9,6 +9,8 @@ class CCarnage : public CBaddy { public: EXPORT CCarnage(int*, int); + EXPORT void Shouldnt_DoPhysics_Be_Virtual(void); + EXPORT void DoPhysics(void); unsigned char carnageStartPad[0x10]; diff --git a/platform.cpp b/platform.cpp index 05aaba3..2531bcf 100644 --- a/platform.cpp +++ b/platform.cpp @@ -1,6 +1,16 @@ #include "platform.h" #include "validate.h" +// @Ok +void CPlatform::Shouldnt_DoPhysics_Be_Virtual(void) +{ + this->DoPhysics(); +} + +// @TODO +void CPlatform::DoPhysics(void) +{} + void validate_CPlatform(void){ VALIDATE_SIZE(CPlatform, 0x35C); } diff --git a/platform.h b/platform.h index 8a4ab85..0ba68e4 100644 --- a/platform.h +++ b/platform.h @@ -5,7 +5,10 @@ class CPlatform : public CBaddy { public: + EXPORT void Shouldnt_DoPhysics_Be_Virtual(void); + EXPORT void DoPhysics(void); + unsigned char platPat[0x38]; }; -void validate_CPlatform(void); \ No newline at end of file +void validate_CPlatform(void); diff --git a/spclone.cpp b/spclone.cpp index 1ca18a7..d69f88d 100644 --- a/spclone.cpp +++ b/spclone.cpp @@ -2,6 +2,16 @@ #include "validate.h" +// @Ok +void CSpClone::Shouldnt_DoPhysics_Be_Virtual(void) +{ + this->DoPhysics(); +} + +// @TODO +void CSpClone::DoPhysics(void) +{} + void validate_CSpClone(void){ VALIDATE_SIZE(CSpClone, 0x350); diff --git a/spclone.h b/spclone.h index eee687f..13337b3 100644 --- a/spclone.h +++ b/spclone.h @@ -6,6 +6,8 @@ class CSpClone : public CBaddy { public: + EXPORT void Shouldnt_DoPhysics_Be_Virtual(void); + EXPORT void DoPhysics(void); int padTop; diff --git a/superock.cpp b/superock.cpp index 640e879..5c4a8d4 100644 --- a/superock.cpp +++ b/superock.cpp @@ -50,6 +50,15 @@ void SuperDocOck_CreateSuperDocOck(const unsigned int *stack, unsigned int *resu *result = reinterpret_cast(new CSuperDocOck(v2, v3)); } +// @Ok +void CSuperDocOck::Shouldnt_DoPhysics_Be_Virtual(void) +{ + this->DoPhysics(); +} + +// @TODO +void CSuperDocOck::DoPhysics(void) +{} void validate_CSuperDocOck(void){ VALIDATE_SIZE(CSuperDocOck, 0x414); diff --git a/superock.h b/superock.h index b68ac1b..c6675cd 100644 --- a/superock.h +++ b/superock.h @@ -11,6 +11,8 @@ class CSuperDocOck : public CBaddy { public: EXPORT CSuperDocOck(int*, int); + EXPORT void Shouldnt_DoPhysics_Be_Virtual(void); + EXPORT void DoPhysics(void); unsigned char padTop[0x32C-0x324]; int field_32C; diff --git a/torch.cpp b/torch.cpp index 7c3e062..9abf7f7 100644 --- a/torch.cpp +++ b/torch.cpp @@ -40,6 +40,16 @@ void Torch_CreateTorch(const unsigned int *stack, unsigned int *result) *result = reinterpret_cast(new CTorch(v2, v3)); } +// @Ok +void CTorch::Shouldnt_DoPhysics_Be_Virtual(void) +{ + this->DoPhysics(); +} + +// @TODO +void CTorch::DoPhysics(void) +{} + void validate_CTorch(void){ VALIDATE_SIZE(CTorch, 0x354); diff --git a/torch.h b/torch.h index 55f6037..f2e9108 100644 --- a/torch.h +++ b/torch.h @@ -11,6 +11,8 @@ class CTorch : public CBaddy { public: EXPORT CTorch(int* a2, int a3); + EXPORT void Shouldnt_DoPhysics_Be_Virtual(void); + EXPORT void DoPhysics(void); int field_324; int field_328; diff --git a/venom.cpp b/venom.cpp index 9cce8ed..1a3eeb5 100644 --- a/venom.cpp +++ b/venom.cpp @@ -45,6 +45,16 @@ void Venom_CreateVenom(const unsigned int *stack, unsigned int *result) *result = reinterpret_cast(new CVenom(v2, v3)); } +// @Ok +void CVenom::Shouldnt_DoPhysics_Be_Virtual(void) +{ + this->DoPhysics(); +} + +// @TODO +void CVenom::DoPhysics(void) +{} + void validate_CVenom(void){ VALIDATE_SIZE(CVenom, 0x468); diff --git a/venom.h b/venom.h index 266c24a..b98371f 100644 --- a/venom.h +++ b/venom.h @@ -10,6 +10,8 @@ public: EXPORT CVenom(int*, int); EXPORT void Lookaround(void); + EXPORT void Shouldnt_DoPhysics_Be_Virtual(void); + EXPORT void DoPhysics(void); unsigned char venomStartPad[0x18]; unsigned char field_33C;