// // SetupEnterEffectPopup::determineStartValues from 0xa12c08 to 0xa12da8 (416 bytes) // // 2 xrefs: // > @ 0xb4e58 // > @ 0x11d43a0 // // 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 SetupEnterEffectPopup::determineStartValues(SetupEnterEffectPopup *a1) { unsigned __int64 v1; // x25 EffectGameObject *m_gameObject; // x0 cocos2d::CCArray *m_gameObjects; // x21 int m_objectID; // w2 unsigned int v6; // w20 int v7; // w23 __int64 v8; // x1 _BOOL4 v9; // w22 __int64 v10; // x0 int m_enterType; // w1 float v12; // w3 char v13; // w4 float v14; // w1 char v15; // w2 float v16; // w0 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) ) { a1->m_enterType = -1; m_objectID = a1->m_objectID; v6 = 0; v7 = 1; v8 = qword_1244080; *(_QWORD *)&a1->m_hsvValue.h = qword_1244078; *(_QWORD *)&a1->m_hsvValue.v = v8; v9 = m_objectID != 3021; while ( v6 < (unsigned int)cocos2d::CCArray::count(m_gameObjects) ) { v10 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v6); m_enterType = a1->m_enterType; if ( m_enterType < 0 ) { a1->m_enterType = *(_DWORD *)(v10 + 1820); } else if ( m_enterType != *(_DWORD *)(v10 + 1820) ) { a1->m_enterType = 0; } if ( !v9 ) { if ( v7 ) { v12 = *(float *)(v10 + 1596); v13 = *(_BYTE *)(v10 + 1608); v14 = *(float *)(v10 + 1600); v15 = *(_BYTE *)(v10 + 1609); v16 = *(float *)(v10 + 1604); v7 = 0; a1->m_hsvValue.absoluteSaturation = v13; a1->m_hsvValue.absoluteBrightness = v15; a1->m_hsvValue.h = v12; a1->m_hsvValue.s = v14; a1->m_hsvValue.v = v16; } else if ( a1->m_hsvValue.h != *(float *)(v10 + 1596) || *(float *)(v10 + 1600) != a1->m_hsvValue.s || a1->m_hsvValue.v != *(float *)(v10 + 1604) || (v1 = v1 & 0xFFFF0000FFFFFFFFLL | ((unsigned __int64)*(unsigned __int8 *)(v10 + 1608) << 32) & 0xFFFF00FFFFFFFFFFLL | ((unsigned __int64)*(unsigned __int8 *)(v10 + 1609) << 40), WORD2(v1) != *(unsigned __int16 *)&a1->m_hsvValue.absoluteSaturation) ) { a1->m_hsvValue.h = -0.001; a1->m_hsvValue.absoluteSaturation = 0; a1->m_hsvValue.s = 0.0; a1->m_hsvValue.absoluteBrightness = 0; a1->m_hsvValue.v = 0.0; v9 = 1; ++v6; continue; } } ++v6; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source