// // CustomSFXWidget::onDelete from 0xa317dc to 0xa31920 (324 bytes) // // 3 xrefs: // > @ 0x6aec0 // > CustomSFXWidget::init @ 0xa32be4 // > @ 0x122b7f8 // // 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 CustomSFXWidget::onDelete(CustomSFXWidget *a1, cocos2d::CCObject *a2) { int v2; // w20 FLAlertLayer *v3; // x20 void *v4; // x0 unsigned int *v5; // x2 int v6; // w1 __int64 v7; // [xsp+40h] [xbp+40h] BYREF v2 = (int)a1; if ( a1->m_sfxObject ) { sub_D153B8((int)&v7, "Do you want to Delete this SFX?"); v3 = FLAlertLayer::create(v2 + 328, (__int64)"Delete SFX", (__int64)&v7); v4 = (void *)(v7 - 24); if ( (__int64 *)(v7 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v5 = (unsigned int *)(v7 - 8); do v6 = __ldaxr(v5); while ( __stlxr(v6 - 1, v5) ); } else { v6 = *(_DWORD *)(v7 - 8); *(_DWORD *)(v7 - 8) = v6 - 1; } if ( v6 <= 0 ) operator delete(v4); } v3->setTag(v3, 3); v3->show(v3); } }