// // SetupCameraOffsetTrigger::determineStartValues from 0x966e60 to 0x9671a0 (832 bytes) // // 2 xrefs: // > @ 0x4b3d8 // > @ 0x11be020 // // 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 SetupCameraOffsetTrigger::determineStartValues(SetupCameraOffsetTrigger *a1) { EffectGameObject *m_gameObject; // x0 cocos2d::CCArray *m_gameObjects; // x20 float v4; // s9 float v5; // s10 unsigned int v6; // w19 int v7; // w28 int v8; // w24 int y; // w21 int x; // w22 EasingType v11; // w25 __int64 v12; // x27 const cocos2d::CCPoint *v13; // x1 const cocos2d::CCPoint *v14; // x1 int v15; // [xsp+8Ch] [xbp+8Ch] int v16; // [xsp+90h] [xbp+90h] int v17; // [xsp+94h] [xbp+94h] int v18; // [xsp+98h] [xbp+98h] int v19; // [xsp+9Ch] [xbp+9Ch] cocos2d::CCPoint v20; // [xsp+A0h] [xbp+A0h] 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_cameraEasingType = -99999; a1->m_offsetX = -99999; a1->m_offsetY = -99999; a1->m_moveTime = -99999.0; a1->m_cameraEasingRate = -99999.0; if ( m_gameObjects && (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { v4 = -99999.0; v5 = -99999.0; v6 = 0; v17 = 0; v18 = 0; v15 = 0; v19 = 0; v7 = 0; v16 = 0; v8 = -99999; y = -99999; x = -99999; v11 = -99999; while ( v6 < (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { v12 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v6); if ( !v16 ) { if ( v5 == -99999.0 ) { v5 = *(float *)(v12 + 1436); } else if ( v5 != *(float *)(v12 + 1436) ) { v16 = 1; v5 = -99999.0; } } if ( !v19 ) { if ( v11 == -99999 ) { v11 = *(_DWORD *)(v12 + 1480); } else if ( v11 != *(_DWORD *)(v12 + 1480) ) { v11 = -99999; v19 = 1; } } if ( !v15 ) { if ( v4 == -99999.0 ) { v4 = *(float *)(v12 + 1484); } else if ( v4 != *(float *)(v12 + 1484) ) { v15 = 1; v4 = -99999.0; } } if ( !v18 ) { v13 = (const cocos2d::CCPoint *)(v12 + 1472); if ( x == -99999 ) { cocos2d::CCPoint::CCPoint(&v20, v13); x = (int)v20.x; } else { cocos2d::CCPoint::CCPoint(&v20, v13); if ( x != (int)v20.x ) { x = -99999; v18 = 1; } } } if ( !v17 ) { v14 = (const cocos2d::CCPoint *)(v12 + 1472); if ( y == -99999 ) { cocos2d::CCPoint::CCPoint(&v20, v14); y = (int)v20.y; } else { cocos2d::CCPoint::CCPoint(&v20, v14); if ( y != (int)v20.y ) { y = -99999; v17 = 1; } } } if ( !v7 ) { if ( v8 == -99999 ) { v8 = *(_DWORD *)(v12 + 1496); ++v6; continue; } if ( v8 != *(_DWORD *)(v12 + 1496) ) { v7 = 1; v8 = -99999; } } ++v6; } if ( v5 != -99999.0 ) a1->m_moveTime = v5; if ( v11 != -99999 ) a1->m_cameraEasingType = v11; if ( v4 != -99999.0 ) a1->m_cameraEasingRate = v4; if ( x != -99999 ) a1->m_offsetX = x; if ( y != -99999 ) a1->m_offsetY = y; if ( v8 != -99999 ) a1->m_targetMode = v8; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source