// // cocos2d::CCDictionary::allKeysForObject from 0x5bfa60 to 0x5bfb2a (202 bytes) // // 1 xrefs: // > cocos2d::CCTextureCache::removeTexture @ 0x5f4e1c // // 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::CCArray *cocos2d::CCDictionary::allKeysForObject(cocos2d::CCDictionary *a1, cocos2d::CCObject *a2) { cocos2d::CCArray *v4; // r0 cocos2d::CCArray *v5; // r0 cocos2d::CCDictionary::CCDictType m_eDictType; // r3 cocos2d::CCArray *v7; // r4 cocos2d::CCDictElement *m_pElements; // r5 cocos2d::CCDictElement *next; // r6 cocos2d::CCString *v10; // r8 cocos2d::CCDictElement *v11; // r3 cocos2d::CCDictElement *v12; // r5 cocos2d::CCDictElement *v13; // r6 cocos2d::CCObject *v14; // r0 cocos2d::CCObject_vtbl *m_iKey; // r5 cocos2d::CCObject *v16; // r8 cocos2d::CCDictElement *v17; // r3 v4 = (cocos2d::CCArray *)cocos2d::CCDictionary::count(a1); if ( (int)v4 <= 0 ) return nullptr; v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(v4); m_eDictType = a1->m_eDictType; v7 = v5; if ( m_eDictType == kCCDictStr ) { m_pElements = a1->m_pElements; if ( m_pElements ) next = (cocos2d::CCDictElement *)m_pElements->hh.next; else next = nullptr; while ( m_pElements ) { if ( a2 == m_pElements->m_pObject ) { v10 = (cocos2d::CCString *)operator new(0x38u); cocos2d::CCString::CCString(v10, (const char *)m_pElements); cocos2d::CCArray::addObject(v7, v10); cocos2d::CCObject::release(v10); } if ( next ) v11 = (cocos2d::CCDictElement *)next->hh.next; else v11 = nullptr; m_pElements = next; next = v11; } } else if ( m_eDictType == kCCDictInt ) { v12 = a1->m_pElements; if ( v12 ) v13 = (cocos2d::CCDictElement *)v12->hh.next; else v13 = nullptr; while ( v12 ) { if ( a2 == v12->m_pObject ) { v14 = (cocos2d::CCObject *)operator new(0x38u); m_iKey = (cocos2d::CCObject_vtbl *)v12->m_iKey; v16 = v14; cocos2d::CCObject::CCObject(v14); v16[1].__vftable = m_iKey; v16->__vftable = (cocos2d::CCObject_vtbl *)&off_A45350; cocos2d::CCArray::addObject(v7, v16); cocos2d::CCObject::release(v16); } if ( v13 ) v17 = (cocos2d::CCDictElement *)v13->hh.next; else v17 = nullptr; v12 = v13; v13 = v17; } } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source