// // cocos2d::CCSpriteFrame::copyWithZone from 0x100358160 to 0x100358288 (296 bytes) // // 1 xrefs: // > @ 0x100917210 // // 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::CCObject *__fastcall cocos2d::CCSpriteFrame::copyWithZone(cocos2d::CCSpriteFrame *a1, cocos2d::CCZone *a2) { char *v2; // rbx std::array *longStorage; // rsi cocos2d::CCTexture2D *m_pobTexture; // r14 cocos2d::CCObject *v5; // rdi v2 = (char *)operator new(0xB8u); *(_OWORD *)v2 = 0; *((_OWORD *)v2 + 1) = 0; *((_OWORD *)v2 + 2) = 0; *((_OWORD *)v2 + 3) = 0; *((_OWORD *)v2 + 4) = 0; *((_OWORD *)v2 + 5) = 0; *((_OWORD *)v2 + 6) = 0; *((_OWORD *)v2 + 7) = 0; *((_OWORD *)v2 + 8) = 0; *((_OWORD *)v2 + 9) = 0; *((_OWORD *)v2 + 10) = 0; *((_QWORD *)v2 + 22) = 0; cocos2d::CCObject::CCObject(v2); *(_QWORD *)v2 = off_100917210; sub_10028CC30((_QWORD *)v2 + 7); sub_10028CF90((_QWORD *)v2 + 8); sub_10028D130(v2 + 72); sub_10028D130(v2 + 92); sub_10028CC30(v2 + 108); sub_10028CF90(v2 + 116); *(_OWORD *)(v2 + 168) = 0; *(_OWORD *)(v2 + 152) = 0; *(_OWORD *)(v2 + 136) = 0; if ( (a1->m_strTextureFilename.m_data.m_short.sizex2 & 1) != 0 ) longStorage = (std::array *)a1->m_strTextureFilename.m_data.m_long.longStorage; else longStorage = &a1->m_strTextureFilename.m_data.m_short.shortStorage; cocos2d::CCSpriteFrame::initWithTextureFilename( (cocos2d::CCSpriteFrame *)v2, longStorage->__elems_, &a1->m_obRectInPixels, a1->m_bRotated, &a1->m_obOffsetInPixels, &a1->m_obOriginalSizeInPixels); m_pobTexture = a1->m_pobTexture; v5 = *((cocos2d::CCObject **)v2 + 16); if ( v5 != m_pobTexture ) { if ( v5 ) cocos2d::CCObject::release(v5); if ( m_pobTexture ) cocos2d::CCObject::retain(m_pobTexture); *((_QWORD *)v2 + 16) = m_pobTexture; } return (cocos2d::CCObject *)v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source