// // CustomSFXCell::loadFromObject from 0x1002445a0 to 0x100244679 (217 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall CustomSFXCell::loadFromObject(CustomSFXCell *a1, SFXInfoObject *a2) { CustomSFXWidget *v3; // r14 _BYTE v4[32]; // [rsp+10h] [rbp-20h] BYREF ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1); a1->m_sfxObject = a2; v3 = CustomSFXWidget::create(a2, &a1->CustomSFXDelegate, 1, 1, 1, 0, a1->m_compactMode); ((void (__fastcall *)(cocos2d::CCLayer *, CustomSFXWidget *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v3, 2); sub_10028CBE0(v4, a1->m_width * 0.5, 0.5 * a1->m_height); ((void (__fastcall *)(CustomSFXWidget *, _BYTE *))v3->setPosition)(v3, v4); LODWORD(v3) = a1->m_sfxObject->m_sfxID; a1->m_selected = (_DWORD)v3 == ((unsigned int (__fastcall *)(CustomSFXCell *))a1->getActiveSFXID)(a1); }