// // cocos2d::CCTMXLayer::removeTileAt from 0xb39cd4 to 0xb39df0 (284 bytes) // // 2 xrefs: // > cocos2d::CCTMXLayer::setTileGID @ 0xb39fbc // > @ 0x7a568 // // 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 cocos2d::CCTMXLayer::removeTileAt(cocos2d::CCTMXLayer *a1, const cocos2d::CCPoint *a2) { unsigned int v4; // w20 unsigned int v5; // w21 unsigned int *v6; // x0 cocos2d::CCNode *v7; // x1 cocos2d::CCArray *m_pChildren; // x0 cocos2d::CCArray *v9; // x0 cocos2d::ccArray *data; // x0 unsigned int num; // w1 cocos2d::CCObject **arr; // x0 cocos2d::CCObject **i; // x3 cocos2d::CCObject *v14; // x2 unsigned int m_uAutoReleaseCount; // w1 bool v16; // cc unsigned int v17; // w1 if ( cocos2d::CCTMXLayer::tileGIDAt(a1, a2) ) { v4 = (unsigned int)(float)(a2->x + (float)(a2->y * *(float *)(&a1->m_bManualSortAllChildrenDirty + 3))); v5 = cocos2d::CCTMXLayer::atlasIndexForExistantZ(a1, v4); v6 = *(unsigned int **)&a1[1].m_fSkewY; *(_DWORD *)(*(_QWORD *)&a1[1].m_nTag + 4LL * v4) = 0; cocos2d::ccCArrayRemoveValueAtIndex(v6, v5); v7 = a1->getChildByTag(a1, v4); if ( v7 ) { cocos2d::CCSpriteBatchNode::removeChild(a1, v7, 1); } else { cocos2d::CCTextureAtlas::removeQuadAtIndex(a1->m_pobTextureAtlas, v5); m_pChildren = a1->m_pChildren; if ( m_pChildren ) { if ( (unsigned int)cocos2d::CCArray::count(m_pChildren) ) { v9 = a1->m_pChildren; if ( v9 ) { data = v9->data; num = data->num; if ( data->num ) { arr = data->arr; for ( i = &arr[num - 1]; i >= arr; ++arr ) { v14 = *arr; if ( !*arr ) break; m_uAutoReleaseCount = v14[6].m_uAutoReleaseCount; v16 = v5 > m_uAutoReleaseCount; v17 = m_uAutoReleaseCount - 1; if ( !v16 ) v14[6].m_uAutoReleaseCount = v17; } } } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source