// // GameLevelManager::getSavedLevelLists from 0x6f1c80 to 0x6f1d44 (196 bytes) // // 3 xrefs: // > LevelBrowserLayer::loadPage @ 0x6ea2a4 // > LevelBrowserLayer::FLAlert_Clicked @ 0x6ed450 // > @ 0xa4448 // // 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 *GameLevelManager::getSavedLevelLists(GameLevelManager *a1, int a2) { cocos2d::CCArray *v4; // x21 cocos2d::CCDictionary *m_favoriteLists; // x0 cocos2d::CCDictElement *m_pElements; // x1 _QWORD *next; // x19 cocos2d::CCArray *v8; // x0 cocos2d::CCObject *m_pObject; // x1 _QWORD *v10; // x1 v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); m_favoriteLists = a1->m_favoriteLists; if ( m_favoriteLists ) { m_pElements = m_favoriteLists->m_pElements; if ( m_pElements ) { next = m_pElements->hh.next; v8 = v4; m_pObject = m_pElements->m_pObject; if ( a2 <= 0 ) goto LABEL_7; LABEL_4: if ( a2 == m_pObject[6].m_uIndexInArray ) { LABEL_7: while ( 1 ) { cocos2d::CCArray::addObject(v8, m_pObject); if ( !next ) break; LABEL_6: v10 = next; next = (_QWORD *)next[36]; v8 = v4; m_pObject = (cocos2d::CCObject *)v10[33]; if ( a2 > 0 ) goto LABEL_4; } } else if ( next ) { goto LABEL_6; } } } if ( (unsigned int)cocos2d::CCArray::count(v4) ) qsort(v4->data->arr, v4->data->num, 8u, (int (*)(const void *, const void *))savedListCompare); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source