// // GameLevelManager::getCompletedGauntletDemons from 0x100098908 to 0x1000989c0 (184 bytes) // // 1 xrefs: // > GameLevelManager::updateUserScore @ 0x1000a2030 // // 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; // x8 cocos2d::CCDictElement *m_pElements; // x23 int v3; // w19 cocos2d::CCObject *m_pObject; // x0 GJGameLevel *v5; // x0 GJGameLevel *v6; // x22 GameStatsManager *v7; // x0 m_gauntletLevels = a1->m_gauntletLevels; if ( !m_gauntletLevels ) return 0; m_pElements = m_gauntletLevels->m_pElements; if ( !m_pElements ) return 0; v3 = 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 ) { v6 = v5; if ( v5->m_stars.random - v5->m_stars.seed == 10 && v5->m_normalPercent.random - v5->m_normalPercent.seed == 100 ) { v7 = GameStatsManager::sharedState(); v3 += GameStatsManager::hasCompletedLevel(v7, v6); } } } } while ( m_pElements ); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source