// // EditorUI::onTargetIDChange from 0x10004df20 to 0x10004e059 (313 bytes) // // 2 xrefs: // > EditorUI::keyDown @ 0x100050e26 // > EditorUI::keyDown @ 0x1000510bd // // 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 EditorUI::onTargetIDChange(EditorUI *a1, int a2) { char v2; // al GameObject *m_selectedObject; // rdi cocos2d::CCArray *m_selectedObjects; // r14 unsigned int v7; // r15d GameObject *v8; // rax unsigned int v9; // r12d EffectGameObject *v10; // r13 int m_targetGroupID; // esi __int64 v12; // rax __int64 v13; // r15 cocos2d::CCString *v14; // rax const char *CString; // rax char v16; // [rsp-8h] [rbp-30h] v16 = v2; m_selectedObject = a1->m_selectedObject; if ( m_selectedObject ) { m_selectedObjects = (cocos2d::CCArray *)sub_10071FA80(m_selectedObject); if ( !(unsigned int)sub_100720070(m_selectedObjects) ) return; } else { m_selectedObjects = a1->m_selectedObjects; if ( !(unsigned int)sub_100720070(m_selectedObjects) ) return; } if ( (unsigned int)sub_100720070(m_selectedObjects) ) { v7 = 0; while ( 1 ) { v8 = (GameObject *)sub_1007200C0(m_selectedObjects, v7); if ( !GameObject::isTrigger(v8) ) break; if ( ++v7 >= (unsigned int)sub_100720070(m_selectedObjects) ) goto LABEL_9; } } else { LABEL_9: if ( (unsigned int)sub_100720070(m_selectedObjects) ) { v9 = 0; do { v10 = (EffectGameObject *)sub_1007200C0(m_selectedObjects, v9); if ( GameObject::isTrigger(v10) ) { m_targetGroupID = v10->m_targetGroupID; if ( m_targetGroupID > 0 ) { EffectGameObject::setTargetID(v10, a2 + m_targetGroupID); v12 = ((__int64 (__fastcall *)(EffectGameObject *, __int64))v10->getChildByTag)(v10, 999); if ( v12 ) { v13 = v12; v14 = (cocos2d::CCString *)sub_1007AB580("%i", v16); CString = cocos2d::CCString::getCString(v14); (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v13 + 912LL))(v13, CString); } } } ++v9; } while ( v9 < (unsigned int)sub_100720070(m_selectedObjects) ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source