// // CCPartAnimSprite::tweenToFrame from 0x10007f20c to 0x10007f378 (364 bytes) // // 1 xrefs: // > CCAnimatedSprite::tweenToAnimation @ 0x1002fdce0 // // 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::tweenToFrame(CCPartAnimSprite *a1, cocos2d::CCSpriteFrame *a2, float a3) { char *CString; // x0 CCAnimateFrameCache *v6; // x0 void **v7; // x1 cocos2d::CCArray *v8; // x0 cocos2d::CCArray *m_spriteParts; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x10 unsigned __int64 arr; // x9 unsigned __int64 v13; // x10 cocos2d::ccArray *v14; // x20 __int64 v15; // x9 unsigned __int64 v16; // x21 __int64 v17; // x22 cocos2d::ccArray *v18; // x9 __int64 v19; // x8 cocos2d::CCObject **v20; // x20 unsigned __int64 v21; // x21 cocos2d::CCObject *v22; // x0 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v24; // [xsp+1Fh] [xbp-31h] if ( a1->m_spriteFrame ) { CString = (char *)cocos2d::CCString::getCString((cocos2d::CCString *)a2); sub_100009900(__p, CString); v6 = CCAnimateFrameCache::sharedSpriteFrameCache(); if ( v24 >= 0 ) v7 = __p; else v7 = (void **)__p[0]; v8 = CCAnimateFrameCache::spriteFrameByName(v6, (const char *)v7); if ( v8 ) { m_spriteParts = a1->m_spriteParts; if ( m_spriteParts ) { data = m_spriteParts->data; num = data->num; if ( (_DWORD)num ) { arr = (unsigned __int64)data->arr; v13 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; *(_BYTE *)(*(_QWORD *)arr + 619LL) = 0; arr += 8LL; } while ( arr <= v13 ); } } v14 = v8->data; v15 = v14->num; if ( (int)v15 >= 1 ) { v16 = 0; v17 = 8 * v15; do { CCPartAnimSprite::tweenSpriteTo(a1, (SpriteDescription *)v14->arr[v16 / 8], a3); v16 += 8LL; } while ( v17 != v16 ); m_spriteParts = a1->m_spriteParts; } if ( m_spriteParts ) { v18 = m_spriteParts->data; v19 = v18->num; if ( (_DWORD)v19 ) { v20 = v18->arr; v21 = (unsigned __int64)&v20[v19 - 1]; do { v22 = *v20; if ( !*v20 ) break; if ( (BYTE3(v22[11].__vftable) & 1) == 0 ) ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v22->__vftable[4].~CCObject)(v22, 0); ++v20; } while ( (unsigned __int64)v20 <= v21 ); } } } a1->m_hasChanged = 1; if ( v24 < 0 ) operator delete(__p[0]); } else { ((void (__fastcall *)(CCPartAnimSprite *, cocos2d::CCSpriteFrame *, float))a1->setDisplayFrame)(a1, a2, a3); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source