diff --git a/blackcat.cpp b/blackcat.cpp index 43a14cd..84b348e 100644 --- a/blackcat.cpp +++ b/blackcat.cpp @@ -5,10 +5,19 @@ extern u8 submarinerDieRelated; extern CBaddy* BaddyList; -// @SMALLTODO +// @Ok void BlackCat_RelocatableModuleClear(void) { - printf("BlackCat_RelocatableModuleClear(void)"); + for (CBody* cur = BaddyList; cur; ) + { + CBody* next = reinterpret_cast(cur->field_20); + if (cur->field_38 == 319) + { + delete cur; + } + + cur = next; + } } // @MEDIUMTODO diff --git a/blackcat.h b/blackcat.h index 9bb7054..066a02f 100644 --- a/blackcat.h +++ b/blackcat.h @@ -38,3 +38,4 @@ public: void validate_CBlackCat(void); EXPORT void BlackCat_CreateBlackCat(const unsigned int *stack, unsigned int *result); +EXPORT void BlackCat_RelocatableModuleClear(void);