// // cocos2d::CCDictionary::removeAllObjects from 0x10042271c to 0x10042284c (304 bytes) // // 20 xrefs: // > GJEffectManager::reset @ 0x10000ee24 // > GJEffectManager::reset @ 0x10000ee2c // > GJEffectManager::reset @ 0x10000ee34 // > SetGroupIDLayer::updateGroupIDButtons @ 0x10003df50 // > GameLevelManager::resetGauntlets @ 0x10009f7e8 // > CCAnimateFrameCache::removeSpriteFrames @ 0x1001b06cc // > CCAnimateFrameCache::removeSpriteFrames @ 0x1001b06d4 // > CCAnimateFrameCache::removeSpriteFrames @ 0x1001b06e4 // > GJBaseGameLayer::refreshKeyframeAnims @ 0x1001e1f48 // > GJBaseGameLayer::preUpdateVisibility @ 0x1001fe25c // > GJBaseGameLayer::resetLevelVariables @ 0x10020270c // > GJBaseGameLayer::orderSpawnObjects @ 0x10020747c // > PlayerObject::resetCollisionLog @ 0x10021e910 // > PlayerObject::resetCollisionLog @ 0x10021e918 // > PlayerObject::resetCollisionLog @ 0x10021e920 // > PlayerObject::resetCollisionLog @ 0x10021e928 // > cocos2d::FNTConfigRemoveCache @ 0x1002f8efc // > SpriteAnimationManager::doCleanup @ 0x100324634 // > CCContentManager::clearCache @ 0x100412850 // > cocos2d::CCDictionary::dCCDictionary @ 0x100422704 // // 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 cocos2d::CCDictionary::removeAllObjects(cocos2d::CCDictionary *a1) { cocos2d::CCDictElement **p_m_pElements; // x19 cocos2d::CCDictElement *m_pElements; // x20 char *prev; // x9 cocos2d::CCDictElement *next; // x21 void ***v5; // x8 void **v6; // x10 void *v7; // x11 cocos2d::CCDictElement *v8; // x10 cocos2d::CCDictElement **v9; // x11 void **v10; // x8 __int64 v11; // x9 UT_hash_handle *hh_prev; // x9 UT_hash_handle *hh_next; // x10 p_m_pElements = &a1->m_pElements; m_pElements = a1->m_pElements; if ( m_pElements ) { while ( 1 ) { prev = (char *)m_pElements->hh.prev; next = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( prev ) break; v5 = (void ***)*p_m_pElements; if ( next ) goto LABEL_5; free(*v5[34]); free((*p_m_pElements)->hh.tbl); *p_m_pElements = nullptr; LABEL_18: cocos2d::CCObject::release(m_pElements->m_pObject); operator delete(m_pElements); m_pElements = next; if ( !next ) return; } v5 = (void ***)*p_m_pElements; LABEL_5: v6 = v5[34]; v7 = v6[4]; if ( m_pElements == (cocos2d::CCDictElement *)((_BYTE *)v6[3] - (_BYTE *)v7) ) v6[3] = &prev[(_QWORD)v7]; v8 = (cocos2d::CCDictElement *)m_pElements->hh.next; v9 = (cocos2d::CCDictElement **)&prev[(_QWORD)v7 + 16]; if ( !prev ) { v9 = p_m_pElements; v5 = (void ***)m_pElements->hh.next; } *v9 = v8; v10 = v5[34]; if ( v8 ) *(_QWORD *)&v8->m_szKey[(_QWORD)v10[4] + 8] = prev; v11 = (__int64)*v10 + 16 * ((*((_DWORD *)v10 + 2) - 1) & m_pElements->hh.hashv); --*(_DWORD *)(v11 + 8); if ( *(cocos2d::CCDictElement **)v11 == (cocos2d::CCDictElement *)&m_pElements->hh ) *(_QWORD *)v11 = m_pElements->hh.hh_next; hh_prev = m_pElements->hh.hh_prev; hh_next = m_pElements->hh.hh_next; if ( hh_prev ) hh_prev->hh_next = hh_next; if ( hh_next ) hh_next->hh_prev = hh_prev; --*((_DWORD *)v10 + 4); goto LABEL_18; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source