CBitServer::DisplayRegisteredSlots

This commit is contained in:
krystalgamer 2024-08-17 17:24:03 +01:00
parent 76820abcec
commit 28495d0214
2 changed files with 12 additions and 1 deletions

10
bit.cpp
View File

@ -198,6 +198,16 @@ INLINE u32 CBitServer::RegisterSlot(void** bitList, void (*drawFunc)(void**))
return this->mNumEntries;
}
// @Ok
void CBitServer::DisplayRegisteredSlots(void)
{
for (i32 i = 0; i < 0x20; i++)
{
if (this->mEntry[i].field_0)
this->mEntry[i].field_4(this->mEntry[i].field_0);
}
}
// @Ok
CPixel::~CPixel(void)
{

3
bit.h
View File

@ -291,7 +291,7 @@ class CPixel : public CBit
struct SBitServerEntry
{
void* field_0;
void** field_0;
void (*field_4)(void**);
};
@ -301,6 +301,7 @@ class CBitServer : public CClass
EXPORT CBitServer(void);
EXPORT virtual ~CBitServer(void);
EXPORT u32 RegisterSlot(void**, void (*)(void**));
EXPORT void DisplayRegisteredSlots(void);
u32 mNumEntries;
SBitServerEntry mEntry[0x20];