// // CCMenuItemSpriteExtra::activate from 0x575e74 to 0x575fc0 (332 bytes) // // 3 xrefs: // > @ 0x93318 // > @ 0x1138d60 // > @ 0x11565a0 // // 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 CCMenuItemSpriteExtra::activate(CCMenuItemSpriteExtra *a1) { FMODAudioEngine *v2; // x22 void *v3; // x0 unsigned int *v4; // x2 int v5; // w1 __int64 v6; // [xsp+40h] [xbp+40h] BYREF if ( a1->m_bEnabled ) { cocos2d::CCNode::stopAllActions(a1); if ( !a1->m_animationType ) a1->setScale(a1, a1->m_baseScale); if ( *((_QWORD *)a1->m_activateSound.m_data.m_data - 3) ) { v2 = FMODAudioEngine::sharedEngine(); sub_D153B8((int)&v6, (char *)a1->m_activateSound.m_data.m_data); FMODAudioEngine::playEffect(v2, (std::string)&v6, 1.0, 0.0, a1->m_volume); v3 = (void *)(v6 - 24); if ( (__int64 *)(v6 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v4 = (unsigned int *)(v6 - 8); do v5 = __ldaxr(v4); while ( __stlxr(v5 - 1, v4) ); } else { v5 = *(_DWORD *)(v6 - 8); *(_DWORD *)(v6 - 8) = v5 - 1; } if ( v5 <= 0 ) operator delete(v3); } } cocos2d::CCMenuItem::activate(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source