// // SetupPortalPopup::determineStartValues from 0x5031c4 to 0x5032e2 (286 bytes) // // 1 xrefs: // > SetupPortalPopup::init @ 0x50369e // // 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; // r5 float v3; // s15 float v4; // s16 int v5; // r7 int v6; // r6 float v7; // s17 int v8; // r0 float *v9; // r3 float *v10; // r0 m_gameObjects = a1->m_gameObjects; a1->m_cameraEasing = 0; a1->m_cameraPadding = 0.0; if ( m_gameObjects ) { a1->m_freeMode = m_gameObjects[27].m_uOrderOfArrival; a1->m_cameraSettingsEnabled = BYTE1(m_gameObjects[27].m_uOrderOfArrival); v3 = *(float *)&m_gameObjects[27].m_unknown5; LODWORD(a1->m_cameraPadding) = m_gameObjects[27].data; a1->m_cameraEasing = (int)v3; } else { v4 = -99999.0; v5 = 0; v6 = 0; a1->m_freeMode = 1; a1->m_cameraSettingsEnabled = 1; v7 = -99999.0; while ( (unsigned int)m_gameObjects < cocos2d::CCArray::count((cocos2d::CCArray *)a1->m_gameObject) ) { v8 = cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)a1->m_gameObject, (unsigned int)m_gameObjects); if ( !*(_BYTE *)(v8 + 1556) ) a1->m_freeMode = 0; if ( !*(_BYTE *)(v8 + 1557) ) a1->m_cameraSettingsEnabled = 0; if ( !v6 ) { v9 = (float *)(v8 + 1560); if ( v7 == -99999.0 ) { v7 = *v9; } else if ( v7 != *v9 ) { v7 = -99999.0; v6 = 1; } } if ( !v5 ) { v10 = (float *)(v8 + 1564); if ( v4 == -99999.0 ) { v4 = *v10; } else if ( v4 != *v10 ) { v4 = -99999.0; v5 = 1; } } m_gameObjects = (cocos2d::CCArray *)((char *)m_gameObjects + 1); } if ( v7 != -99999.0 ) a1->m_cameraEasing = (int)v7; if ( v4 != -99999.0 ) a1->m_cameraPadding = v4; } if ( !a1->m_cameraSettingsEnabled ) { a1->m_cameraEasing = 10; a1->m_cameraPadding = 0.5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source