// // cocos2d::CCDictionary::removeAllObjects from 0x5c0cd0 to 0x5c0dc6 (246 bytes) // // 28 xrefs: // > AchievementManager::resetAchievements @ 0x2da89c // > CCAnimateFrameCache::removeSpriteFrames @ 0x2e473a // > CCAnimateFrameCache::removeSpriteFrames @ 0x2e4740 // > CCAnimateFrameCache::removeSpriteFrames @ 0x2e474a // > SpriteAnimationManager::doCleanup @ 0x2f3b0c // > PlayerObject::resetCollisionLog @ 0x33d38e // > PlayerObject::resetCollisionLog @ 0x33d396 // > PlayerObject::resetCollisionLog @ 0x33d39e // > PlayerObject::resetCollisionLog @ 0x33d3a6 // > GameLevelManager::resetAllTimers @ 0x3bff2c // > GameLevelManager::resetGauntlets @ 0x3c0f8e // > GameStatsManager::resetUserCoins @ 0x418eee // > GameStatsManager::resetUserCoins @ 0x418efa // > GJBaseGameLayer::clearPickedUpItems @ 0x46f4be // > GJBaseGameLayer::refreshKeyframeAnims @ 0x475e98 // > GJBaseGameLayer::orderSpawnObjects @ 0x478ff4 // > GJBaseGameLayer::preUpdateVisibility @ 0x489918 // > GJEffectManager::reset @ 0x4a3f94 // > GJEffectManager::reset @ 0x4a3f9c // > GJEffectManager::reset @ 0x4a3fa4 // > SetGroupIDLayer::updateGroupIDButtons @ 0x509768 // > cocos2d::CCDictionary::~CCDictionary @ 0x5c0dd6 // > cocos2d::FNTConfigRemoveCache @ 0x5cba3e // > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x5e982a // > cocos2d::CCSpriteFrameCache::removeSpriteFrames @ 0x5e9830 // > cocos2d::CCProfiler::releaseAllTimers @ 0x5eb036 // > cocos2d::CCTextureCache::removeAllTextures @ 0x5f4d62 // > CCContentManager::clearCache @ 0x5fc4ea // // 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 cocos2d::CCDictionary::removeAllObjects(cocos2d::CCDictionary *a1) { cocos2d::CCDictElement *m_pElements; // r4 cocos2d::CCDictElement *next; // r5 char *prev; // lr cocos2d::CCDictElement *v5; // r3 cocos2d::CCDictElement *v6; // r8 UT_hash_table *tbl; // r3 std::ptrdiff_t hho; // r2 char *v9; // r2 cocos2d::CCDictElement *v10; // r12 UT_hash_table *v11; // r1 UT_hash_bucket *buckets; // r2 int v13; // r3 UT_hash_handle *hh_next; // r0 UT_hash_table *v15; // r1 UT_hash_handle *hh_prev; // r3 UT_hash_handle *v17; // r2 cocos2d::CCDictElement *v18; // r3 m_pElements = a1->m_pElements; if ( m_pElements ) next = (cocos2d::CCDictElement *)m_pElements->hh.next; else next = nullptr; while ( m_pElements ) { prev = (char *)m_pElements->hh.prev; v5 = a1->m_pElements; v6 = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( prev || v6 ) { tbl = v5->hh.tbl; hho = tbl->hho; if ( m_pElements == (cocos2d::CCDictElement *)((char *)tbl->tail - hho) ) tbl->tail = (UT_hash_handle *)&prev[hho]; if ( prev ) *(_DWORD *)&prev[tbl->hho + 8] = v6; else a1->m_pElements = v6; v9 = (char *)m_pElements->hh.next; v10 = a1->m_pElements; if ( v9 ) *(_DWORD *)&v9[v10->hh.tbl->hho + 4] = prev; v11 = v10->hh.tbl; buckets = v11->buckets; v13 = m_pElements->hh.hashv & (v11->num_buckets - 1); buckets[v13].count = v11->buckets[v13].count - 1; hh_next = m_pElements->hh.hh_next; v15 = v10->hh.tbl; if ( buckets[v13].hh_head == &m_pElements->hh ) buckets[v13].hh_head = hh_next; hh_prev = m_pElements->hh.hh_prev; if ( hh_prev ) hh_prev->hh_next = hh_next; v17 = m_pElements->hh.hh_next; if ( v17 ) v17->hh_prev = hh_prev; --v15->num_items; } else { free(v5->hh.tbl->buckets); free(a1->m_pElements->hh.tbl); a1->m_pElements = nullptr; } cocos2d::CCObject::release(m_pElements->m_pObject); cocos2d::CCDictElement::~CCDictElement(m_pElements); operator delete(m_pElements); if ( next ) v18 = (cocos2d::CCDictElement *)next->hh.next; else v18 = nullptr; m_pElements = next; next = v18; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source