// // CCAnimateFrameCache::addCustomSpriteFramesWithFile from 0x2e5004 to 0x2e525c (600 bytes) // // 0 xrefs: // // 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 CCAnimateFrameCache::addCustomSpriteFramesWithFile(CCAnimateFrameCache *a1, const char *a2) { cocos2d::CCDictionary *m_animateDescriptions; // r6 int v3; // r5 cocos2d::CCDictionary *v4; // r6 cocos2d::CCNode *v5; // r5 DS_Dictionary *v6; // r5 cocos2d::CCString *v7; // r5 char *CString; // r0 cocos2d::CCArray *v9; // r0 int v10; // r6 int v11; // r5 const std::string *v12; // r1 cocos2d::CCObject *v13; // r0 unsigned int i; // r7 cocos2d::CCString *v15; // r11 char *v16; // r6 int j; // r2 int v18; // r8 const std::string *v19; // r1 cocos2d::CCString *v20; // r0 cocos2d::CCDictionary *v21; // r8 cocos2d::CCArray *v22; // [sp+0h] [bp-24h] cocos2d::CCDictionary *DictForKey; // [sp+Ch] [bp-18h] int v26; // [sp+10h] [bp-14h] char *v27; // [sp+20h] [bp-4h] BYREF char *v28; // [sp+24h] [bp+0h] BYREF std::string v29; // [sp+28h] [bp+4h] BYREF m_animateDescriptions = a1->m_animateDescriptions; sub_776584((int)&v29, (char *)a2); v3 = cocos2d::CCDictionary::objectForKey(m_animateDescriptions, &v29); sub_774008(&v29); if ( !v3 ) { v4 = a1->m_animateDescriptions; v5 = cocos2d::CCNode::create(); sub_776584((int)&v29, (char *)a2); cocos2d::CCDictionary::setObject((int)v4, v5); sub_774008(&v29); v6 = (DS_Dictionary *)operator new(0xD8u); DS_Dictionary::DS_Dictionary(v6); DS_Dictionary::loadRootSubDictFromFile(v6, a2); DictForKey = DS_Dictionary::getDictForKey(v6, nullptr, 0); sub_776584((int)&v29, "copies"); v7 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(DictForKey, &v29); sub_774008(&v29); if ( v7 ) { CString = (char *)cocos2d::CCString::getCString(v7); v9 = (cocos2d::CCArray *)sub_776584((int)&v27, CString); v22 = (cocos2d::CCArray *)cocos2d::CCArray::create(v9); v10 = sub_774A78((int)&v27, " "); v11 = 0; v26 = *((_DWORD *)v27 - 3); while ( 1 ) { sub_776158(&v28, &v27, v11, v10 - v11); if ( *((_DWORD *)v28 - 3) || v11 != v26 ) { sub_776584((int)&v29, v28); v13 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v29, v12); cocos2d::CCArray::addObject(v22, v13); sub_774008(&v29); } if ( v10 == -1 ) break; v11 = v10 + 1; v10 = sub_774A78((int)&v27, " "); sub_774008(&v28); } sub_774008(&v28); sub_774008(&v27); for ( i = 0; i < cocos2d::CCArray::count(v22); ++i ) { v15 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v22, i); v16 = (char *)cocos2d::CCString::getCString(v15); sub_776584((int)&v27, (char *)a2); sub_776584((int)&v28, "xyz"); sub_776584((int)&v29, v16); for ( j = 0; ; j = *((_DWORD *)v29.m_data.m_data - 3) + v18 ) { v18 = sub_774834(&v27, &v28, j); if ( v18 == -1 ) break; sub_776454(&v27, v18, *((_DWORD *)v28 - 3), &v29); } sub_774008(&v29); sub_774008(&v28); sub_776584((int)&v28, v27); sub_774008(&v27); sub_776584((int)&v29, "xyz"); v20 = (cocos2d::CCString *)cocos2d::CCString::create((cocos2d::CCString *)&v29, v19); v21 = ObjectManager::replaceAllOccurencesOfString(v20, v15, DictForKey); sub_774008(&v29); CCAnimateFrameCache::addDict(a1, (DS_Dictionary *)v21, v28); sub_774008(&v28); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source