// // LevelLeaderboard::getLocalScores from 0x4e4da0 to 0x4e4e7e (222 bytes) // // 1 xrefs: // > LevelLeaderboard::loadScores @ 0x4e5286 // // 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 *LevelLeaderboard::getLocalScores(LevelLeaderboard *a1) { cocos2d::CCArray *v2; // r0 GJGameLevel *m_level; // r1 std::string *p_m_localBestPoints; // r1 cocos2d::CCArray *v5; // r9 GJGameLevel *v6; // r0 int *m_start; // r6 int v8; // r7 int v9; // t1 GJLocalScore *v10; // r8 int m_M_ID; // r11 int *m_finish; // [sp+4h] [bp-18h] std::vector p; // [sp+8h] [bp-14h] BYREF v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1); m_level = a1->m_level; if ( a1->m_mode == Points ) p_m_localBestPoints = &m_level->m_localBestPoints; else p_m_localBestPoints = &m_level->m_localBestTimes; v5 = v2; if ( *((_DWORD *)p_m_localBestPoints->m_data.m_data - 3) ) { v6 = a1->m_level; memset(&p, 0, sizeof(p)); GJGameLevel::scoreStringToVector(v6, p_m_localBestPoints, &p); m_start = p.m_start; m_finish = p.m_finish; while ( m_start != m_finish ) { v9 = *m_start++; v8 = v9; v10 = GJLocalScore::create(v9, a1->m_mode); m_M_ID = a1->m_level->m_M_ID; if ( m_M_ID == GameManager::sharedState()->m_leaderboardLevelID && (a1->m_mode == Time && v8 == GameManager::sharedState()->m_leaderboardLevelTime || a1->m_mode == Points && v8 == GameManager::sharedState()->m_leaderboardLevelPoints) ) { v10->m_currentScore = 1; } cocos2d::CCArray::addObject(v5, v10); } if ( p.m_start ) operator delete(p.m_start); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source