// // LevelLeaderboard::getLocalScores from 0x100250a70 to 0x100250b9c (300 bytes) // // 1 xrefs: // > LevelLeaderboard::loadScores @ 0x1002505d0 // // 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 *__fastcall LevelLeaderboard::getLocalScores(LevelLeaderboard *a1) { cocos2d::CCArray *v2; // x19 GJGameLevel *m_level; // x0 __int64 v4; // x8 __int64 v5; // x1 __int64 v6; // x8 int *v7; // x21 int *v8; // x24 int v9; // w23 GJLocalScore *v10; // x22 int m_M_ID; // w26 LevelLeaderboardMode m_mode; // w8 int *v14; // [xsp+8h] [xbp-58h] BYREF int *v15; // [xsp+10h] [xbp-50h] __int64 v16; // [xsp+18h] [xbp-48h] v2 = (cocos2d::CCArray *)sub_10024A15C(); m_level = a1->m_level; v4 = 1272; if ( a1->m_mode == Points ) v4 = 1296; v5 = (__int64)m_level + v4; v6 = *((char *)&m_level->m_uReference + v4 + 3); if ( v6 < 0 ) { if ( !*(_QWORD *)(v5 + 8) ) return v2; } else if ( !v6 ) { return v2; } v14 = nullptr; v15 = nullptr; v16 = 0; sub_1000AD17C((__int64)m_level, v5, (__int64)&v14); v7 = v14; v8 = v15; if ( v14 != v15 ) { while ( 1 ) { v9 = *v7; v10 = GJLocalScore::create(*v7, a1->m_mode); m_M_ID = a1->m_level->m_M_ID; if ( m_M_ID == GameManager::sharedState()->m_leaderboardLevelID ) break; LABEL_15: sub_10024A2D0((__int64)v2); if ( ++v7 == v8 ) { v7 = v14; goto LABEL_17; } } m_mode = a1->m_mode; if ( m_mode == Time ) { if ( v9 == GameManager::sharedState()->m_leaderboardLevelTime ) { LABEL_14: v10->m_currentScore = 1; goto LABEL_15; } m_mode = a1->m_mode; } if ( m_mode != Points || v9 != GameManager::sharedState()->m_leaderboardLevelPoints ) goto LABEL_15; goto LABEL_14; } LABEL_17: if ( v7 ) { v15 = v7; operator delete(v7); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source