BlackCat_RelocatableModuleClear

This commit is contained in:
krystalgamer 2024-08-05 19:45:56 +02:00
parent b56e14d2d4
commit 8ebe404d72
2 changed files with 12 additions and 2 deletions

View File

@ -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<CBody*>(cur->field_20);
if (cur->field_38 == 319)
{
delete cur;
}
cur = next;
}
}
// @MEDIUMTODO

View File

@ -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);