// // SetupRandTriggerPopup::determineStartValues from 0x1404408b0 to 0x1404409ff (335 bytes) // // 4 xrefs: // > @ 0x1405ec7c8 // > @ 0x1406a1fec // > @ 0x1406a2020 // > @ 0x1406da304 // // 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 SetupRandTriggerPopup::determineStartValues(SetupRandTriggerPopup *a1) { __int64 v2; // rcx cocos2d::CCArray *m_gameObjects; // rdi unsigned int v4; // esi struct cocos2d::CCObject *v5; // rdx int m_groupID1; // eax int m_uAutoReleaseCount; // ecx int m_groupID2; // ecx int m_eObjType; // eax float m_chancePercent; // xmm1_4 float v11; // xmm0_4 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_groupID1 = -1; for ( a1->m_chancePercent = -1.0; v4 < cocos2d::CCArray::count(m_gameObjects); ++v4 ) { v5 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v4); m_groupID1 = a1->m_groupID1; m_uAutoReleaseCount = v5[26].m_uAutoReleaseCount; if ( m_groupID1 == -1 ) { a1->m_groupID1 = m_uAutoReleaseCount; } else if ( m_groupID1 != m_uAutoReleaseCount ) { a1->m_groupID1 = 0; } m_groupID2 = a1->m_groupID2; m_eObjType = v5[26].m_eObjType; if ( m_groupID2 == -1 ) { a1->m_groupID2 = m_eObjType; } else if ( m_groupID2 != m_eObjType ) { a1->m_groupID2 = 0; } m_chancePercent = a1->m_chancePercent; v11 = *(float *)&v5[26].m_nLuaID; if ( m_chancePercent == -1.0 ) { a1->m_chancePercent = v11; } else if ( m_chancePercent != v11 ) { a1->m_chancePercent = 0.0; } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source