// // SetupCountTriggerPopup::determineStartValues from 0x14041c060 to 0x14041c1b4 (340 bytes) // // 4 xrefs: // > @ 0x1405e22d0 // > @ 0x1406a0128 // > @ 0x1406a0138 // > @ 0x1406d92a8 // // 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 SetupCountTriggerPopup::determineStartValues(SetupCountTriggerPopup *a1) { __int64 v2; // rcx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v4; // esi struct cocos2d::CCObject *v5; // rax int m_itemID; // edx int m_nTag; // ecx int m_targetID; // edx int m_uAutoReleaseCount; // ecx int m_targetCount; // edx int m_uID; // ecx 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 ) { if ( cocos2d::CCArray::count(m_gameObjects) ) { v4 = 0; *(_QWORD *)&a1->m_itemID = -1; a1->m_targetCount = 99999; for ( *(_WORD *)&a1->m_activateGroup = 257; v4 < cocos2d::CCArray::count(m_gameObjects); ++v4 ) { v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4); if ( !BYTE1(v5[29].m_eObjType) ) a1->m_activateGroup = 0; if ( !LOBYTE(v5[33].m_nTag) ) a1->m_multiActivate = 0; m_itemID = a1->m_itemID; m_nTag = v5[30].m_nTag; if ( m_itemID == -1 ) { a1->m_itemID = m_nTag; } else if ( m_itemID != m_nTag ) { a1->m_itemID = 0; } m_targetID = a1->m_targetID; m_uAutoReleaseCount = v5[26].m_uAutoReleaseCount; if ( m_targetID == -1 ) { a1->m_targetID = m_uAutoReleaseCount; } else if ( m_targetID != m_uAutoReleaseCount ) { a1->m_targetID = 0; } m_targetCount = a1->m_targetCount; m_uID = v5[33].m_uID; if ( m_targetCount == 99999 ) { a1->m_targetCount = m_uID; } else if ( m_targetCount != m_uID ) { a1->m_targetCount = 0; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source