// // SetupPortalPopup::determineStartValues from 0x969b44 to 0x969cac (360 bytes) // // 2 xrefs: // > SetupPortalPopup::init @ 0x96a204 // > @ 0x97278 // // 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 SetupPortalPopup::determineStartValues(SetupPortalPopup *a1) { cocos2d::CCArray *m_gameObjects; // x0 float v3; // s0 float v4; // w2 int m_cameraSettingsEnabled; // w0 unsigned int v6; // w20 float v7; // s10 float v8; // s9 int v9; // w22 int v10; // w21 __int64 v11; // x0 m_gameObjects = a1->m_gameObjects; a1->m_cameraEasing = 0; a1->m_cameraPadding = 0.0; if ( m_gameObjects ) { v3 = *(float *)&m_gameObjects[27].m_uID; a1->m_freeMode = BYTE4(m_gameObjects[27].__vftable); v4 = *(float *)&m_gameObjects[27].m_nLuaID; m_cameraSettingsEnabled = BYTE5(m_gameObjects[27].__vftable); a1->m_cameraSettingsEnabled = m_cameraSettingsEnabled; a1->m_cameraEasing = (int)v3; a1->m_cameraPadding = v4; goto LABEL_3; } a1->m_freeMode = 1; v6 = 0; v7 = -99999.0; a1->m_cameraSettingsEnabled = 1; v8 = -99999.0; v9 = 0; v10 = 0; while ( v6 < (unsigned int)cocos2d::CCArray::count((cocos2d::CCArray *)a1->m_gameObject) ) { v11 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)a1->m_gameObject, v6); if ( !*(_BYTE *)(v11 + 1732) ) a1->m_freeMode = 0; if ( !*(_BYTE *)(v11 + 1733) ) a1->m_cameraSettingsEnabled = 0; if ( !v10 ) { if ( v8 == -99999.0 ) { v8 = *(float *)(v11 + 1736); } else if ( v8 != *(float *)(v11 + 1736) ) { v8 = -99999.0; v10 = 1; } } if ( !v9 ) { if ( v7 == -99999.0 ) { v7 = *(float *)(v11 + 1740); } else if ( v7 != *(float *)(v11 + 1740) ) { v7 = -99999.0; v9 = 1; ++v6; continue; } } ++v6; } if ( v8 != -99999.0 ) a1->m_cameraEasing = (int)v8; m_cameraSettingsEnabled = a1->m_cameraSettingsEnabled; if ( v7 != -99999.0 ) a1->m_cameraPadding = v7; LABEL_3: if ( !m_cameraSettingsEnabled ) { a1->m_cameraEasing = 10; a1->m_cameraPadding = 0.5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source