// // EditorUI::onTargetIDChange from 0x1401223e0 to 0x140122547 (359 bytes) // // 6 xrefs: // > EditorUI::keyDown @ 0x140125f2c // > EditorUI::keyDown @ 0x140125f61 // > @ 0x140670338 // > @ 0x140670394 // > @ 0x1406c9798 // > @ 0x1406c97a4 // // 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 EditorUI::onTargetIDChange(EditorUI *a1, int a2) { struct cocos2d::CCArray *m_selectedObjects; // rbx unsigned int v4; // edi GameObject *v5; // rax unsigned int i; // esi struct cocos2d::CCObject *v7; // rdi int m_uAutoReleaseCount; // eax int v9; // ecx cocos2d::CCObject_vtbl *v10; // rax __int64 v11; // rbp cocos2d::CCString *v12; // rax const char *CString; // rax if ( a1->m_selectedObject ) m_selectedObjects = cocos2d::CCArray::createWithObject(a1->m_selectedObject); else m_selectedObjects = a1->m_selectedObjects; if ( cocos2d::CCArray::count(m_selectedObjects) ) { v4 = 0; if ( cocos2d::CCArray::count(m_selectedObjects) ) { while ( 1 ) { v5 = (GameObject *)cocos2d::CCArray::objectAtIndex(m_selectedObjects, v4); if ( !GameObject::isTrigger(v5) ) break; if ( ++v4 >= cocos2d::CCArray::count(m_selectedObjects) ) goto LABEL_8; } } else { LABEL_8: for ( i = 0; i < cocos2d::CCArray::count(m_selectedObjects); ++i ) { v7 = cocos2d::CCArray::objectAtIndex(m_selectedObjects, i); if ( GameObject::isTrigger((GameObject *)v7) ) { m_uAutoReleaseCount = v7[26].m_uAutoReleaseCount; if ( m_uAutoReleaseCount > 0 ) { v9 = m_uAutoReleaseCount + a2; v10 = v7->__vftable; if ( v9 < 0 ) v9 = 0; if ( v9 > 9999 ) v9 = 9999; v7[26].m_uAutoReleaseCount = v9; v11 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *, __int64))v10[6].acceptVisitor)(v7, 999); if ( v11 ) { v12 = cocos2d::CCString::createWithFormat("%i", v7[26].m_uAutoReleaseCount); CString = cocos2d::CCString::getCString(v12); (**(void (__fastcall ***)(__int64, const char *))(v11 + 360))(v11 + 360, CString); } } } } } } }