// // LocalLevelManager::getCreatedLevels from 0x7e9580 to 0x7e9634 (180 bytes) // // 2 xrefs: // > LevelBrowserLayer::loadPage @ 0x6ea158 // > @ 0x79518 // // 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 // cocos2d::CCArray *LocalLevelManager::getCreatedLevels(LocalLevelManager *a1, int a2) { cocos2d::CCArray *v4; // x22 cocos2d::CCArray *m_localLevels; // x0 cocos2d::ccArray *data; // x2 cocos2d::CCArray *result; // x0 cocos2d::CCObject **arr; // x19 cocos2d::CCObject **v9; // x21 cocos2d::CCObject *v10; // x1 if ( a2 <= 0 ) return a1->m_localLevels; v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); m_localLevels = a1->m_localLevels; if ( !m_localLevels ) return v4; data = m_localLevels->data; result = v4; if ( data->num ) { arr = data->arr; v9 = &arr[data->num - 1]; if ( arr <= v9 ) { v10 = *arr; if ( *arr ) { do { if ( a2 == v10[11].m_unknown2 ) cocos2d::CCArray::addObject(v4, v10); if ( v9 < ++arr ) break; v10 = *arr; } while ( *arr ); return v4; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source