// // GameLevelManager::getCompletedGauntletDemons from 0x1005372a0 to 0x100537357 (183 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 // int __fastcall GameLevelManager::getCompletedGauntletDemons(GameLevelManager *a1) { cocos2d::CCDictionary *m_gauntletLevels; // rax int v2; // ebx cocos2d::CCDictElement *m_pElements; // r13 cocos2d::CCObject *m_pObject; // rdi GJGameLevel *v5; // rax GJGameLevel *v6; // r12 GameStatsManager *v7; // rax m_gauntletLevels = a1->m_gauntletLevels; v2 = 0; if ( m_gauntletLevels ) { m_pElements = m_gauntletLevels->m_pElements; if ( m_pElements ) { v2 = 0; do { m_pObject = m_pElements->m_pObject; m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( m_pObject ) { v5 = (GJGameLevel *)__dynamic_cast( m_pObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); if ( v5 ) { if ( v5->m_stars.random - v5->m_stars.seed == 10 && v5->m_normalPercent.random - v5->m_normalPercent.seed == 100 ) { v6 = v5; v7 = GameStatsManager::sharedState(); v2 += GameStatsManager::hasCompletedLevel(v7, v6); } } } } while ( m_pElements ); } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source