// // CCPartAnimSprite::setDisplayFrame from 0x10007f0c0 to 0x10007f1ec (300 bytes) // // 1 xrefs: // > @ 0x10077b658 // // 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 CCPartAnimSprite::setDisplayFrame(CCPartAnimSprite *a1, cocos2d::CCSpriteFrame *a2) { cocos2d::CCSpriteFrame *m_spriteFrame; // x0 CCAnimateFrameCache *v5; // x21 const char *CString; // x0 cocos2d::CCArray *v7; // x0 cocos2d::CCArray *m_spriteParts; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x10 unsigned __int64 arr; // x9 unsigned __int64 v12; // x10 cocos2d::ccArray *v13; // x20 __int64 v14; // x9 unsigned __int64 v15; // x21 __int64 v16; // x22 cocos2d::ccArray *v17; // x9 __int64 v18; // x8 cocos2d::CCObject **v19; // x20 unsigned __int64 v20; // x21 cocos2d::CCObject *v21; // x0 if ( a2 ) { m_spriteFrame = a1->m_spriteFrame; if ( m_spriteFrame != a2 ) { if ( m_spriteFrame ) cocos2d::CCObject::release(m_spriteFrame); a1->m_spriteFrame = a2; cocos2d::CCObject::retain(a2); v5 = CCAnimateFrameCache::sharedSpriteFrameCache(); CString = cocos2d::CCString::getCString((cocos2d::CCString *)a2); v7 = CCAnimateFrameCache::spriteFrameByName(v5, CString); if ( v7 ) { m_spriteParts = a1->m_spriteParts; if ( m_spriteParts ) { data = m_spriteParts->data; num = data->num; if ( (_DWORD)num ) { arr = (unsigned __int64)data->arr; v12 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; *(_BYTE *)(*(_QWORD *)arr + 619LL) = 0; arr += 8LL; } while ( arr <= v12 ); } } v13 = v7->data; v14 = v13->num; if ( (int)v14 >= 1 ) { v15 = 0; v16 = 8 * v14; do { CCPartAnimSprite::transformSprite(a1, (SpriteDescription *)v13->arr[v15 / 8]); v15 += 8LL; } while ( v16 != v15 ); m_spriteParts = a1->m_spriteParts; } if ( m_spriteParts ) { v17 = m_spriteParts->data; v18 = v17->num; if ( (_DWORD)v18 ) { v19 = v17->arr; v20 = (unsigned __int64)&v19[v18 - 1]; do { v21 = *v19; if ( !*v19 ) break; if ( (BYTE3(v21[11].__vftable) & 1) == 0 ) ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v21->__vftable[4].~CCObject)(v21, 0); ++v19; } while ( (unsigned __int64)v19 <= v20 ); } } } a1->m_hasChanged = 1; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source