// // CollisionBlockPopup::textChanged from 0x1002870f0 to 0x100287237 (327 bytes) // // 2 xrefs: // > sub_100287240 @ 0x10028724c // > @ 0x1008f3350 // // 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 CollisionBlockPopup::textChanged(CollisionBlockPopup *a1, CCTextInputNode *a2) { double v2; // xmm0_8 cocos2d::CCArray *m_gameObjects; // rdi int m_blockID; // eax char *v6; // r14 int v7; // ecx int v8; // eax EffectGameObject *m_gameObject; // rcx unsigned int v10; // r14d __int64 v11; // r14 unsigned int v12; // ebx GameObject *v13; // rax _QWORD v14[2]; // [rsp-30h] [rbp-30h] BYREF char *v15; // [rsp-20h] [rbp-20h] if ( a1->m_disableDelegate ) return; CCTextInputNode::getString(v14, (__int64)a2, v2); if ( (v14[0] & 1) != 0 ) { v6 = v15; a1->m_blockID = atoi(v15); m_gameObjects = (cocos2d::CCArray *)v6; operator delete(v6); m_blockID = a1->m_blockID; } else { m_gameObjects = (cocos2d::CCArray *)((char *)v14 + 1); m_blockID = atoi((const char *)v14 + 1); } v7 = 0; if ( m_blockID > 0 ) v7 = m_blockID; v8 = 9999; if ( v7 < 9999 ) v8 = v7; a1->m_blockID = v8; m_gameObject = a1->m_gameObject; if ( m_gameObject ) { m_gameObject->m_itemID = v8; goto LABEL_16; } m_gameObjects = a1->m_gameObjects; if ( m_gameObjects && (unsigned int)sub_100720070(m_gameObjects) ) { v10 = 0; do { a2 = (CCTextInputNode *)v10; *(_DWORD *)(sub_1007200C0(a1->m_gameObjects, v10++) + 1680) = a1->m_blockID; m_gameObjects = a1->m_gameObjects; } while ( v10 < (unsigned int)sub_100720070(m_gameObjects) ); } if ( a1->m_gameObject ) { LABEL_16: v11 = sub_10071F9E0(m_gameObjects, a2); sub_10071FCD0(v11, a1->m_gameObject); if ( !v11 ) return; goto LABEL_17; } v11 = (__int64)a1->m_gameObjects; if ( !v11 ) return; LABEL_17: if ( (unsigned int)sub_100720070(v11) ) { v12 = 0; do { v13 = (GameObject *)sub_1007200C0(v11, v12); LevelEditorLayer::updateObjectLabel(v13); ++v12; } while ( v12 < (unsigned int)sub_100720070(v11) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source