// // SetupMGTrigger::determineStartValues from 0x140428250 to 0x1404284a1 (593 bytes) // // 5 xrefs: // > @ 0x1405e7598 // > @ 0x1406a0be8 // > @ 0x1406a0bf8 // > @ 0x1406d97d0 // > @ 0x1406d97dc // // 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) { __int64 v2; // rcx cocos2d::CCArray *m_gameObjects; // rbp EasingType v4; // edi int y; // esi char v6; // r12 char v7; // r13 unsigned int v8; // r14d char v9; // r15 float v10; // xmm7_4 float v11; // xmm8_4 char v12; // bl struct cocos2d::CCObject *v13; // rax struct cocos2d::CCObject *v14; // rdx EasingType v15; // eax cocos2d::CCPoint v17; // [rsp+98h] [rbp+10h] BYREF cocos2d::CCPoint v18; // [rsp+A0h] [rbp+18h] BYREF SetupTriggerPopup::determineStartValues(a1); if ( a1->m_gameObject ) { m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v2); cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject); } else { m_gameObjects = a1->m_gameObjects; } a1->m_moveTime = -99999.0; a1->m_mgEasingType = -99999; a1->m_offsetY = -99999; a1->m_mgEasingRate = -99999.0; if ( m_gameObjects ) { if ( cocos2d::CCArray::count(m_gameObjects) ) { v4 = -99999; y = -99999; v6 = 0; v7 = 0; v8 = 0; v9 = 0; v10 = -99999.0; v11 = -99999.0; if ( cocos2d::CCArray::count(m_gameObjects) ) { v12 = 0; do { v13 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v8); v14 = v13; if ( !v12 ) { if ( v11 == -99999.0 ) { v11 = *(float *)&v13[26].m_nLuaID; } else if ( v11 != *(float *)&v13[26].m_nLuaID ) { v11 = -99999.0; v12 = 1; } } if ( !v6 ) { v15 = (EasingType)v13[27].__vftable; if ( v4 == -99999 ) { v4 = v15; } else if ( v4 != v15 ) { v4 = -99999; v6 = 1; } } if ( !v7 ) { if ( v10 == -99999.0 ) { v10 = *((float *)&v14[27].__vftable + 1); } else if ( v10 != *((float *)&v14[27].__vftable + 1) ) { v10 = -99999.0; v7 = 1; } } if ( !v9 ) { if ( y == -99999 ) { cocos2d::CCPoint::CCPoint(&v17); y = (int)v17.y; } else { cocos2d::CCPoint::CCPoint(&v18); if ( y != (int)v18.y ) { y = -99999; v9 = 1; } } } ++v8; } while ( v8 < cocos2d::CCArray::count(m_gameObjects) ); if ( v11 != -99999.0 ) a1->m_moveTime = v11; if ( v4 != -99999 ) a1->m_mgEasingType = v4; if ( v10 != -99999.0 ) a1->m_mgEasingRate = v10; if ( y != -99999 ) a1->m_offsetY = y; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source