// // SetupMGTrigger::determineStartValues from 0xa1f134 to 0xa1f380 (588 bytes) // // 2 xrefs: // > @ 0x728a0 // > @ 0x11d7300 // // 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 SetupMGTrigger::determineStartValues(SetupMGTrigger *a1) { EffectGameObject *m_gameObject; // x0 cocos2d::CCArray *m_gameObjects; // x20 float v4; // s9 float v5; // s10 unsigned int v6; // w19 int v7; // w25 int v8; // w27 int v9; // w24 int v10; // w26 int y; // w21 EasingType v12; // w22 __int64 v13; // x0 const cocos2d::CCPoint *v14; // x1 cocos2d::CCPoint v15; // [xsp+80h] [xbp+80h] BYREF SetupTriggerPopup::determineStartValues(a1); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)m_gameObject); cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject); } else { m_gameObjects = a1->m_gameObjects; } a1->m_mgEasingType = -99999; a1->m_offsetY = -99999; a1->m_moveTime = -99999.0; a1->m_mgEasingRate = -99999.0; if ( m_gameObjects && (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { v4 = -99999.0; v5 = -99999.0; v6 = 0; v7 = 0; v8 = 0; v9 = 0; v10 = 0; y = -99999; v12 = -99999; while ( v6 < (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { v13 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v6); if ( !v10 ) { if ( v5 == -99999.0 ) { v5 = *(float *)(v13 + 1436); } else if ( v5 != *(float *)(v13 + 1436) ) { v5 = -99999.0; v10 = 1; } } if ( !v9 ) { if ( v12 == -99999 ) { v12 = *(_DWORD *)(v13 + 1480); } else if ( v12 != *(_DWORD *)(v13 + 1480) ) { v9 = 1; v12 = -99999; } } if ( !v8 ) { if ( v4 == -99999.0 ) { v4 = *(float *)(v13 + 1484); } else if ( v4 != *(float *)(v13 + 1484) ) { v4 = -99999.0; v8 = 1; } } if ( !v7 ) { v14 = (const cocos2d::CCPoint *)(v13 + 1472); if ( y == -99999 ) { cocos2d::CCPoint::CCPoint(&v15, v14); ++v6; y = (int)v15.y; continue; } cocos2d::CCPoint::CCPoint(&v15, v14); if ( y != (int)v15.y ) { v7 = 1; y = -99999; } } ++v6; } if ( v5 != -99999.0 ) a1->m_moveTime = v5; if ( v12 != -99999 ) a1->m_mgEasingType = v12; if ( v4 != -99999.0 ) a1->m_mgEasingRate = v4; if ( y != -99999 ) a1->m_offsetY = y; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source