// // SetupInstantCountPopup::textChanged from 0x1005ea340 to 0x1005ea5e6 (678 bytes) // // 2 xrefs: // > sub_1005EA5F0 @ 0x1005ea5fc // > @ 0x100978da0 // // 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 __fastcall SetupInstantCountPopup::textChanged(SetupInstantCountPopup *a1, CCTextInputNode *a2) { double v2; // xmm0_8 int *p_m_targetCount; // r15 EffectGameObject *m_gameObject; // rax int m_itemID; // eax int m_targetID; // eax char *v8; // r14 int v9; // ecx int v10; // eax EffectGameObject *v11; // rcx char *v12; // r14 cocos2d::CCArray *m_gameObjects; // rdi unsigned int v14; // r14d char *v15; // r14 int v16; // ecx int v17; // esi EffectGameObject *v18; // rdi cocos2d::CCArray *v19; // rdi unsigned int v20; // r14d cocos2d::CCArray *v21; // rdi unsigned int v22; // r14d EffectGameObject *v23; // rax _QWORD v24[2]; // [rsp-38h] [rbp-38h] BYREF char *v25; // [rsp-28h] [rbp-28h] if ( !a1->m_disableTextDelegate ) { if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) ) { if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 1 ) { CCTextInputNode::getString(v24, (__int64)a2, v2); if ( (v24[0] & 1) != 0 ) { v12 = v25; p_m_targetCount = &a1->m_targetCount; a1->m_targetCount = atoi(v25); operator delete(v12); m_gameObject = a1->m_gameObject; if ( m_gameObject ) goto LABEL_6; } else { p_m_targetCount = &a1->m_targetCount; a1->m_targetCount = atoi((const char *)v24 + 1); m_gameObject = a1->m_gameObject; if ( m_gameObject ) { LABEL_6: *(_DWORD *)(&m_gameObject->m_canSpawnTriggers + 1) = *p_m_targetCount; return; } } m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) ) { v14 = 0; do *(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v14++) + 1836) = a1->m_targetCount; while ( v14 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } else { CCTextInputNode::getString(v24, (__int64)a2, v2); if ( (v24[0] & 1) != 0 ) { v15 = v25; a1->m_targetID = atoi(v25); operator delete(v15); m_targetID = a1->m_targetID; } else { m_targetID = atoi((const char *)v24 + 1); } v16 = 0; if ( m_targetID > 0 ) v16 = m_targetID; v17 = 9999; if ( v16 < 9999 ) v17 = v16; a1->m_targetID = v17; v18 = a1->m_gameObject; if ( v18 ) { EffectGameObject::setTargetID(v18, v17); } else { v21 = a1->m_gameObjects; if ( v21 && (unsigned int)sub_100720070(v21) ) { v22 = 0; do { v23 = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, v22); EffectGameObject::setTargetID(v23, a1->m_targetID); ++v22; } while ( v22 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } } } else { CCTextInputNode::getString(v24, (__int64)a2, v2); if ( (v24[0] & 1) != 0 ) { v8 = v25; a1->m_itemID = atoi(v25); operator delete(v8); m_itemID = a1->m_itemID; } else { m_itemID = atoi((const char *)v24 + 1); } v9 = 0; if ( m_itemID > 0 ) v9 = m_itemID; v10 = 9999; if ( v9 < 9999 ) v10 = v9; a1->m_itemID = v10; v11 = a1->m_gameObject; if ( v11 ) { v11->m_itemID = v10; } else { v19 = a1->m_gameObjects; if ( v19 && (unsigned int)sub_100720070(v19) ) { v20 = 0; do *(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v20++) + 1680) = a1->m_itemID; while ( v20 < (unsigned int)sub_100720070(a1->m_gameObjects) ); } } SetupTriggerPopup::updateEditorLabel(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source