// // cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad from 0x100178290 to 0x100178328 (152 bytes) // // 1 xrefs: // > cocos2d::CCTMXLayer::tileAt @ 0x10025af39 // // 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 // cocos2d::CCSpriteBatchNode *__fastcall cocos2d::CCSpriteBatchNode::addSpriteWithoutQuad( cocos2d::CCSpriteBatchNode *a1, cocos2d::CCSprite *a2, unsigned int a3, int a4) { cocos2d::CCArray *m_pobDescendants; // rdi __int64 v7; // rdx cocos2d::ccArray *data; // rax __int64 num; // rcx unsigned __int64 arr; // rax unsigned __int64 v11; // rcx a2->m_uAtlasIndex = a3; m_pobDescendants = a1->m_pobDescendants; v7 = 0; if ( m_pobDescendants ) { data = m_pobDescendants->data; num = data->num; if ( data->num ) { arr = (unsigned __int64)data->arr; v11 = arr + 8 * num - 8; v7 = 0; do { if ( !*(_QWORD *)arr ) break; if ( *(_DWORD *)(*(_QWORD *)arr + 360LL) >= a3 ) break; v7 = (unsigned int)(v7 + 1); arr += 8LL; } while ( arr <= v11 ); } } sub_1007201F0(m_pobDescendants, a2, v7); cocos2d::CCNode::addChild(a1, (int)a2, a3); a1->m_bReorderChildDirty = 0; return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source