// // GJEffectManager::updateEffects from 0x14025bea0 to 0x14025c019 (377 bytes) // // 12 xrefs: // > GJBaseGameLayer::loadUpToPosition @ 0x140235ac8 // > GJBaseGameLayer::update @ 0x140238fad // > GJBaseGameLayer::update @ 0x140239275 // > GJEffectManager::loadFromState @ 0x140264b5c // > LevelEditorLayer::updateGameObjects @ 0x1402dc865 // > LevelEditorLayer::updateGameObjects @ 0x1402dcd02 // > LevelEditorLayer::onPlaytest @ 0x1402dfe88 // > PlayLayer::setupHasCompleted @ 0x1403a7762 // > PlayLayer::loadDefaultColors @ 0x1403b1f38 // > @ 0x140684ad0 // > @ 0x140684ae0 // > @ 0x1406cfd68 // // 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 GJEffectManager::updateEffects(GJEffectManager *a1, float a2) { cocos2d::CCDictionary *m_unkObject148; // r10 cocos2d::CCDictElement *m_pElements; // r10 __int64 v6; // r10 cocos2d::CCDictElement *v7; // r11 __int64 v8; // rcx std::_List_val>>::_Nodeptr Myhead; // rcx _QWORD *v10; // rax float v11; // xmm4_4 float v12; // xmm2_4 float v13; // xmm2_4 float v14; // xmm3_4 float v15; // xmm1_4 __int64 v16; // [rsp+60h] [rbp+8h] BYREF m_unkObject148 = a1->m_unkObject148; if ( m_unkObject148 ) { m_pElements = m_unkObject148->m_pElements; if ( m_pElements ) { do { ColorAction::step((ColorAction *)m_pElements->m_pObject, a2); if ( !*(_DWORD *)(v6 + 120) ) { v8 = *(_QWORD *)(v6 + 144); *(_WORD *)(v8 + 324) = *(_WORD *)(v6 + 58); *(_BYTE *)(v8 + 326) = *(_BYTE *)(v6 + 60); *(float *)(v8 + 320) = *(float *)(v6 + 64) * 255.0; } m_pElements = v7; } while ( v7 ); } } GJEffectManager::updatePulseEffects(a1, a2); Myhead = a1->m_opacityEffectMap._List._Mypair._Myval2._Myhead; v10 = *(_QWORD **)Myhead; if ( *(std::_List_val>>::_Nodeptr *)Myhead != Myhead ) { do { if ( *((_BYTE *)v10 + 32) ) goto LABEL_15; if ( !*((_BYTE *)v10 + 33) ) { v11 = *((float *)v10 + 5); v12 = a2 + *((float *)v10 + 9); *((float *)v10 + 9) = v12; v13 = v12 + *((float *)v10 + 14); if ( v13 < v11 ) v14 = v13 <= 0.0 ? 0.0 : v13 / v11; else v14 = 1.0; v15 = (float)(*((float *)v10 + 7) - *((float *)v10 + 6)) * v14; *((_BYTE *)v10 + 32) = v13 >= v11; *((float *)v10 + 11) = v15 + *((float *)v10 + 6); if ( v13 >= v11 ) { LABEL_15: if ( *((float *)v10 + 11) >= 1.0 ) v10 = sub_14024D170(&a1->m_opacityEffectMap._Traitsobj._Mypair._Myval2._Myval2, &v16, (void **)v10); } } v10 = (_QWORD *)*v10; } while ( v10 != (_QWORD *)a1->m_opacityEffectMap._List._Mypair._Myval2._Myhead ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source