// // SetupCameraModePopup::determineStartValues from 0xa160b0 to 0xa1622c (380 bytes) // // 2 xrefs: // > @ 0x5a5d0 // > @ 0x11d4bd0 // // 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 SetupCameraModePopup::determineStartValues(SetupCameraModePopup *a1) { EffectGameObject *m_gameObject; // x0 cocos2d::CCArray *m_gameObjects; // x21 unsigned int v4; // w19 float v5; // s10 float v6; // s9 int v7; // w23 int i; // w22 __int64 v9; // x0 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; } if ( m_gameObjects && (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { a1->m_freeMode = 1; v4 = 0; v5 = -99999.0; a1->m_cameraSettingsEnabled = 1; v6 = -99999.0; a1->m_cameraModeObjects = 1; v7 = 0; for ( i = 0; v4 < (unsigned int)cocos2d::CCArray::count(m_gameObjects); ++v4 ) { v9 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4); if ( !*(_BYTE *)(v9 + 1732) ) a1->m_freeMode = 0; if ( !*(_BYTE *)(v9 + 1733) ) a1->m_cameraSettingsEnabled = 0; if ( !i ) { if ( v6 == -99999.0 ) { v6 = *(float *)(v9 + 1736); } else if ( v6 != *(float *)(v9 + 1736) ) { v6 = -99999.0; i = 1; } } if ( !v7 ) { if ( v5 == -99999.0 ) { v5 = *(float *)(v9 + 1740); } else if ( v5 != *(float *)(v9 + 1740) ) { v5 = -99999.0; v7 = 1; } } if ( *(_DWORD *)(v9 + 1012) != 2925 ) a1->m_cameraModeObjects = 0; } if ( v6 != -99999.0 ) a1->m_cameraEasing = (int)v6; if ( v5 != -99999.0 ) a1->m_cameraPadding = v5; } if ( !a1->m_cameraSettingsEnabled ) { a1->m_cameraEasing = 10; a1->m_cameraPadding = 0.5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source