// // AchievementManager::getAllAchievementsSorted from 0x2da25c to 0x2da332 (214 bytes) // // 2 xrefs: // > AchievementManager::init @ 0x2da5b8 // > AchievementManager::init @ 0x2da5c8 // // 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 *AchievementManager::getAllAchievementsSorted(AchievementManager *a1, bool a2) { unsigned int v3; // r6 cocos2d::CCArray *v4; // r7 cocos2d::CCArray *v5; // r5 cocos2d::CCString *v6; // r0 char *CString; // r0 cocos2d::CCDictionary *m_platformAchievements; // r10 cocos2d::CCDictionary *v9; // r10 _BOOL4 v11; // [sp+4h] [bp-20h] int v12; // [sp+Ch] [bp-18h] std::string v13; // [sp+18h] [bp-Ch] BYREF v11 = a2; v3 = 0; v4 = cocos2d::CCDictionary::allKeys(a1->m_platformAchievements); v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(v4); while ( v3 < cocos2d::CCArray::count(v4) ) { v6 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v4, v3); CString = (char *)cocos2d::CCString::getCString(v6); m_platformAchievements = a1->m_platformAchievements; sub_776584((int)&v13, CString); v9 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::objectForKey(m_platformAchievements, &v13); sub_774008(&v13); if ( !v11 || (sub_776584((int)&v13, "un"), v12 = cocos2d::CCDictionary::objectForKey(v9, &v13), sub_774008(&v13), !v12) ) { cocos2d::CCArray::addObject(v5, v9); } ++v3; } if ( cocos2d::CCArray::count(v5) ) qsort(v5->data->arr, v5->data->num, 4u, (int (*)(const void *, const void *))achievementCompare); return v5; }