// // GameLevelManager::getSavedLevelLists from 0x100534d50 to 0x100534e1c (204 bytes) // // 2 xrefs: // > LevelBrowserLayer::loadPage @ 0x10048e87f // > LevelBrowserLayer::FLAlert_Clicked @ 0x100491b18 // // 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 // // local variable allocation has failed, the output may be wrong! cocos2d::CCArray *__fastcall GameLevelManager::getSavedLevelLists(GameLevelManager *a1, int a2) { cocos2d::CCArray *v3; // rbx cocos2d::CCDictionary *m_favoriteLists; // rax cocos2d::CCDictElement *m_pElements; // rax cocos2d::CCDictElement *next; // r15 cocos2d::CCObject *v7; // rsi cocos2d::CCObject *m_pObject; // rsi v3 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2); m_favoriteLists = a1->m_favoriteLists; if ( m_favoriteLists ) { m_pElements = m_favoriteLists->m_pElements; if ( m_pElements ) { next = (cocos2d::CCDictElement *)m_pElements->hh.next; if ( a2 > 0 ) { while ( 1 ) { m_pObject = m_pElements->m_pObject; if ( m_pObject[6].m_uIndexInArray == a2 ) sub_10071FCD0(v3, m_pObject); if ( !next ) break; m_pElements = next; next = (cocos2d::CCDictElement *)next->hh.next; } } else { sub_10071FCD0(v3, m_pElements->m_pObject); while ( next ) { v7 = next->m_pObject; next = (cocos2d::CCDictElement *)next->hh.next; sub_10071FCD0(v3, v7); } } } } if ( (unsigned int)sub_100720070(v3) ) qsort(v3->data->arr, v3->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_10051A880); return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source