// // GameLevelManager::getSavedLevelLists from 0x140147610 to 0x1401476ba (170 bytes) // // 4 xrefs: // > LevelBrowserLayer::loadPage @ 0x1402cae3f // > LevelBrowserLayer::FLAlert_Clicked @ 0x1402cf8d9 // > @ 0x1406ca5fc // > @ 0x1406ca608 // // 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) { __int64 v4; // rax cocos2d::CCDictionary *m_favoriteLists; // rdx cocos2d::CCArray *v6; // rsi cocos2d::CCDictElement *m_pElements; // rdx cocos2d::CCDictElement *i; // rbx struct cocos2d::CCObject *m_pObject; // rdx v4 = cocos2d::CCArray::create(a1); m_favoriteLists = a1->m_favoriteLists; v6 = (cocos2d::CCArray *)v4; if ( m_favoriteLists ) { m_pElements = m_favoriteLists->m_pElements; if ( m_pElements ) { for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next ) { m_pObject = m_pElements->m_pObject; if ( a2 <= 0 || m_pObject[6].m_uIndexInArray == a2 ) cocos2d::CCArray::addObject(v6, m_pObject); m_pElements = i; if ( !i ) break; } } } if ( cocos2d::CCArray::count(v6) ) qsort(v6->data->arr, v6->data->num, 8u, (_CoreCrtNonSecureSearchSortCompareFunction)sub_140142B60); return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source