// // cocos2d::CCDictionary::allKeysForObject from 0x180009990 to 0x180009af1 (353 bytes) // // 3 xrefs: // > cocos2d::CCTextureCache::removeTexture @ 0x1800a9841 // > @ 0x1801438a8 // > @ 0x1801adca8 // // 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 // // Hidden C++ exception states: #wind=2 struct cocos2d::CCArray *__fastcall cocos2d::CCDictionary::allKeysForObject( cocos2d::CCDictionary *this, struct cocos2d::CCObject *a2) { cocos2d::CCDictElement *m_pElements; // rax cocos2d::CCArray *v5; // rbp cocos2d::CCDictionary::CCDictType m_eDictType; // ecx cocos2d::CCDictElement *v7; // rbx cocos2d::CCDictElement *i; // rdi cocos2d::CCString *v9; // rax struct cocos2d::CCObject *v10; // rbx cocos2d::CCDictElement *v11; // rbx cocos2d::CCDictElement *j; // rsi cocos2d::CCObject *v13; // rax cocos2d::CCObject *v14; // rdi int m_iKey; // ebx m_pElements = this->m_pElements; if ( !m_pElements || (int)m_pElements->hh.tbl->num_items <= 0 ) return nullptr; v5 = cocos2d::CCArray::create(); m_eDictType = this->m_eDictType; if ( m_eDictType == kCCDictStr ) { v7 = this->m_pElements; if ( v7 ) { for ( i = (cocos2d::CCDictElement *)v7->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next ) { if ( a2 == v7->m_pObject ) { v9 = (cocos2d::CCString *)operator new(0x58u); if ( v9 ) v10 = (struct cocos2d::CCObject *)cocos2d::CCString::CCString(v9, v7->m_szKey); else v10 = nullptr; cocos2d::CCArray::addObject(v5, v10); if ( v10 ) cocos2d::CCObject::release(v10); } v7 = i; if ( !i ) break; } } } else if ( m_eDictType == kCCDictInt ) { v11 = this->m_pElements; if ( v11 ) { for ( j = (cocos2d::CCDictElement *)v11->hh.next; ; j = (cocos2d::CCDictElement *)j->hh.next ) { if ( a2 == v11->m_pObject ) { v13 = (cocos2d::CCObject *)operator new(0x40u); v14 = v13; if ( v13 ) { m_iKey = v11->m_iKey; cocos2d::CCObject::CCObject(v13); v14->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCInteger::`vftable'; LODWORD(v14[1].__vftable) = m_iKey; } else { v14 = nullptr; } cocos2d::CCArray::addObject(v5, v14); if ( v14 ) cocos2d::CCObject::release(v14); } v11 = j; if ( !j ) break; } } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source