// // SetupAreaTintTriggerPopup::determineStartValues from 0xa08e20 to 0xa08f94 (372 bytes) // // 3 xrefs: // > @ 0x3b580 // > @ 0x11d2b60 // > @ 0x11d3b50 // // 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 SetupAreaTintTriggerPopup::determineStartValues(SetupAreaTintTriggerPopup *a1) { unsigned __int64 v1; // x25 EffectGameObject *m_gameObject; // x0 cocos2d::CCArray *m_gameObjects; // x21 unsigned int v5; // w19 int v6; // w23 int v7; // w22 __int64 v8; // x1 bool v9; // cf unsigned int v10; // w1 cocos2d::CCArray *i; // x0 __int64 v12; // x0 float v13; // w4 float v14; // w2 float v15; // w1 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 ) { if ( (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { v5 = 0; v6 = 1; v7 = 0; v8 = qword_1244048; *(_QWORD *)&a1->m_hsvValue.h = qword_1244040; *(_QWORD *)&a1->m_hsvValue.v = v8; v9 = (unsigned int)cocos2d::CCArray::count(m_gameObjects) == 0; v10 = 0; for ( i = m_gameObjects; !v9; i = m_gameObjects ) { v12 = cocos2d::CCArray::objectAtIndex(i, v10); if ( !v7 ) { if ( v6 ) { v13 = *(float *)(v12 + 1596); v14 = *(float *)(v12 + 1600); v6 = 0; v15 = *(float *)(v12 + 1604); *(_WORD *)&a1->m_hsvValue.absoluteSaturation = *(_WORD *)(v12 + 1608); a1->m_hsvValue.h = v13; a1->m_hsvValue.s = v14; a1->m_hsvValue.v = v15; } else if ( *(float *)(v12 + 1596) != a1->m_hsvValue.h || a1->m_hsvValue.s != *(float *)(v12 + 1600) || a1->m_hsvValue.v != *(float *)(v12 + 1604) || (v1 = v1 & 0xFFFF0000FFFFFFFFLL | ((unsigned __int64)*(unsigned __int8 *)(v12 + 1608) << 32) & 0xFFFF00FFFFFFFFFFLL | ((unsigned __int64)*(unsigned __int8 *)(v12 + 1609) << 40), WORD2(v1) != *(unsigned __int16 *)&a1->m_hsvValue.absoluteSaturation) ) { a1->m_hsvValue.h = -0.001; v7 = 1; a1->m_hsvValue.s = 0.0; a1->m_hsvValue.absoluteSaturation = 0; a1->m_hsvValue.v = 0.0; a1->m_hsvValue.absoluteBrightness = 0; ++v5; goto LABEL_10; } } ++v5; LABEL_10: v9 = v5 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects); v10 = v5; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source