Okay so it registers the OnFuckballs member function, let's see what it does...
wait a minute
There is no OnFuckballs what the christ! Furthermore the member variable nativeFuckballsCallback that registers the function doesn't even exist either! So I meticuously scan the class definition and find something that looks vaguely related
Code: Select all
SW_CALLBACK(CFucks, Fuckballs_t, Fuckballs);
Code: Select all
#define SW_CALLBACK(className, assType, callbackName) \
private: \
CCallback<className, assType, false> native##callbackName##Callback; \
void On##callbackName (assType *assData) \
{ \
CServices::Instance().CallManagedCallback(ECallbackID::callbackName, assData, sizeof(assType)); \
}
changes access rules creates phantom variables and functions secretly depends on completely unrelated classes that are fucking singletons assumes a global enum value will exist fuuuuuuuuuuuuuuuck
ps the CFucks class itself is also a singleton and the CServices class secretly depends back on it too.
This brittle shit will break the minute someone who didn't invent it changes anything anywhere in the whole damn codebase.