// // GameLevelManager::getCompletedDailyLevels from 0x10009862c to 0x100098778 (332 bytes) // // 1 xrefs: // > GameLevelManager::updateUserScore @ 0x1000a21cc // // 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 // int __fastcall GameLevelManager::getCompletedDailyLevels(GameLevelManager *a1) { cocos2d::CCArray *v2; // x0 cocos2d::ccArray *data; // x9 __int64 num; // x8 int v5; // w20 cocos2d::CCString **arr; // x25 unsigned __int64 v7; // x26 cocos2d::CCString *v8; // x23 cocos2d::CCDictionary *m_dailyLevels; // x24 char *CString; // x0 const void *v11; // x0 GJGameLevel *v12; // x23 GameStatsManager *v13; // x0 void *__p[2]; // [xsp+8h] [xbp-68h] BYREF char v16; // [xsp+1Fh] [xbp-51h] v2 = cocos2d::CCDictionary::allKeys(a1->m_dailyLevels); if ( v2 ) { data = v2->data; num = data->num; if ( (_DWORD)num ) { v5 = 0; arr = (cocos2d::CCString **)data->arr; v7 = (unsigned __int64)&arr[num - 1]; while ( 1 ) { v8 = *arr; if ( !*arr ) return v5; if ( cocos2d::CCString::intValue(*arr) <= 100000 ) { m_dailyLevels = a1->m_dailyLevels; CString = (char *)cocos2d::CCString::getCString(v8); sub_100009900(__p, CString); v11 = (const void *)cocos2d::CCDictionary::objectForKey_1(m_dailyLevels, __p); if ( v11 ) v12 = (GJGameLevel *)__dynamic_cast( v11, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'GJGameLevel, 0); else v12 = nullptr; if ( v16 < 0 ) { operator delete(__p[0]); if ( v12 ) { LABEL_13: if ( v12->m_stars.random - v12->m_stars.seed <= 9 && v12->m_normalPercent.random - v12->m_normalPercent.seed == 100 ) { v13 = GameStatsManager::sharedState(); v5 += GameStatsManager::hasCompletedLevel(v13, v12); } } } else if ( v12 ) { goto LABEL_13; } } if ( (unsigned __int64)++arr > v7 ) return v5; } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source