// // CCLightFlash::fadeAndRemove from 0x1000312f4 to 0x100031454 (352 bytes) // // 1 xrefs: // > CCLightFlash::showFlash @ 0x1000312f0 // // 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 CCLightFlash::fadeAndRemove(CCLightFlash *a1) { __int64 v2; // x20 float v3; // s8 __int64 v4; // x22 float v5; // s9 float v6; // s10 cocos2d::CCDelayTime *v7; // x23 cocos2d::CCAction *v8; // x0 cocos2d::CCDelayTime *v9; // x20 cocos2d::CCAction *v10; // x1 cocos2d::SEL_CallFunc v11; // 0:x1.16 cocos2d::SEL_CallFunc v12; // 0:x1.16 if ( (unsigned int)sub_10024A36C(a1->m_lightStripArray) ) { v2 = 0; v3 = 0.0; do { v4 = sub_10024A388(a1->m_lightStripArray, v2); v5 = vcvts_n_f32_s32(rand(), 0x1Fu) * 0.2; v6 = (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.1) + 0.5; v7 = cocos2d::CCDelayTime::create(v5); cocos2d::CCActionTween::create_1(v6, "opacity", *(float *)(v4 + 336), 0.0); v11.ptr = (void (*)(void))520; v11.adj = 1; cocos2d::CCCallFunc::create((cocos2d::CCObject *)v4, v11); v8 = (cocos2d::CCAction *)sub_10018A494(v7); cocos2d::CCNode::runAction((cocos2d::CCNode *)v4, v8); if ( (float)(v5 + v6) > v3 ) v3 = v5 + v6; v2 = (unsigned int)(v2 + 1); } while ( (unsigned int)v2 < (unsigned int)sub_10024A36C(a1->m_lightStripArray) ); } else { v3 = 0.0; } v9 = cocos2d::CCDelayTime::create(v3); v12.ptr = (void (*)(void))520; v12.adj = 1; cocos2d::CCCallFunc::create(a1, v12); v10 = (cocos2d::CCAction *)sub_10018A494(v9); cocos2d::CCNode::runAction(a1, v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source