// // SetupInstantCountPopup::determineStartValues from 0x1404232e0 to 0x140423442 (354 bytes) // // 4 xrefs: // > @ 0x1405e51c0 // > @ 0x1406a077c // > @ 0x1406a078c // > @ 0x1406d9620 // // 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 SetupInstantCountPopup::determineStartValues(SetupInstantCountPopup *a1) { __int64 v2; // rcx cocos2d::CCArray *m_gameObjects; // rsi unsigned int v4; // edi struct cocos2d::CCObject *v5; // rax int m_itemID; // edx int m_nTag; // ecx int m_targetID; // edx int m_uAutoReleaseCount; // ecx int m_mode; // edx int m_nLuaID; // 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 ) { v4 = 0; *(_QWORD *)&a1->m_itemID = -1; a1->m_targetCount = 99999; a1->m_activateGroup = 1; for ( a1->m_mode = -1; v4 < cocos2d::CCArray::count(m_gameObjects); ++v4 ) { v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4); if ( !BYTE1(v5[29].m_eObjType) ) a1->m_activateGroup = 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_mode = a1->m_mode; m_nLuaID = v5[33].m_nLuaID; if ( m_mode == -1 ) { a1->m_mode = m_nLuaID; } else if ( m_mode != m_nLuaID ) { a1->m_mode = 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