// // SetupOpacityPopup::determineStartValues from 0x4ba6d4 to 0x4ba7ce (250 bytes) // // 0 xrefs: // // 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 SetupOpacityPopup::determineStartValues(SetupOpacityPopup *a1) { cocos2d::CCArray *v2; // r0 cocos2d::CCArray *m_gameObjects; // r6 float v4; // s16 unsigned int v5; // r5 float v6; // s17 int v7; // r0 float *v8; // r3 float *v9; // r3 int m_groupID; // r2 int v11; // r3 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; } if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) ) { v4 = -99999.0; v5 = 0; a1->m_opacity = 1.0; a1->m_groupID = -99999; v6 = -99999.0; while ( v5 < cocos2d::CCArray::count(m_gameObjects) ) { v7 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v5); v8 = (float *)(v7 + 1264); if ( v6 == -99999.0 ) { v6 = *v8; } else if ( v6 != *v8 ) { v6 = -2.0; } v9 = (float *)(v7 + 1268); if ( v4 == -99999.0 ) { v4 = *v9; } else if ( v4 != *v9 ) { v4 = -2.0; } m_groupID = a1->m_groupID; v11 = *(_DWORD *)(v7 + 1276); if ( m_groupID == -99999 ) { a1->m_groupID = v11; } else if ( m_groupID != v11 ) { a1->m_groupID = 0; } ++v5; } if ( v6 >= 0.0 ) a1->m_fadeTime = v6; if ( v4 >= 0.0 ) a1->m_opacity = v4; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source