mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-11-23 21:39:48 +00:00
CBitServer::DisplayRegisteredSlots
This commit is contained in:
parent
76820abcec
commit
28495d0214
10
bit.cpp
10
bit.cpp
@ -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
3
bit.h
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user