// // LevelLeaderboard::init from 0x10024f398 to 0x100250064 (3276 bytes) // // 1 xrefs: // > LevelLeaderboard::create @ 0x10024f348 // // 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 // bool __fastcall LevelLeaderboard::init( LevelLeaderboard *a1, GJGameLevel *a2, LevelLeaderboardType a3, LevelLeaderboardMode a4) { _BOOL4 inited; // w26 GJLevelType m_levelType; // w25 LevelLeaderboardType v10; // w8 _BOOL4 isPlatformer; // w21 cocos2d::CCDirector *v12; // x0 cocos2d::extension::CCScale9Sprite *v13; // x19 __n128 v14; // q0 __n128 v15; // q1 cocos2d::CCMenu *v16; // x0 GJGameLevel *m_level; // x8 std::string *p_m_levelName; // x8 char *p_dst; // x1 std::string *v20; // x0 cocos2d::CCLabelBMFont *v21; // x23 __n128 v22; // q0 __n128 v23; // q1 char *v24; // x1 const char *v25; // x0 cocos2d::CCSprite *v26; // x19 float width; // s8 float32x2_t *v28; // x24 float v29; // s9 __n128 v30; // q0 __n128 v31; // q1 double v32; // d0 float32x2_t *v33; // x19 __n128 v34; // q0 __n128 v35; // q1 double v36; // d0 cocos2d::CCMenu *m_buttonMenu; // x19 __n128 v38; // q0 __n128 v39; // q1 __int64 v40; // x6 CCMenuItemSpriteExtra *SpriteButton; // x0 cocos2d::CCMenu *v42; // x19 __n128 v43; // q0 __n128 v44; // q1 __int64 v45; // x6 CCMenuItemSpriteExtra *m_pointsBtn; // x0 __n128 v47; // q0 cocos2d::CCMenu *v48; // x19 cocos2d::CCLayer *m_mainLayer; // x22 __n128 v50; // q1 CCMenuItemSpriteExtra *m_timeBtn; // x19 __n128 v52; // q0 __n128 v53; // q1 double v54; // d0 __n128 v55; // q0 CCMenuItemSpriteExtra *v56; // x19 __n128 v57; // q1 double v58; // d0 cocos2d::CCMenu *v59; // x19 __n128 v60; // q0 __n128 v61; // q1 __int64 v62; // x19 __n128 v63; // q0 __n128 v64; // q1 cocos2d::CCMenu *v65; // x22 GameLevelManager *v66; // x0 cocos2d::CCSprite *v67; // x0 CCMenuItemSpriteExtra *v68; // x19 __n128 v69; // q0 cocos2d::CCMenu *v70; // x22 __n128 v71; // q1 cocos2d::CCSprite *v72; // x19 CCMenuItemSpriteExtra *v73; // x0 __n128 v74; // q0 CCMenuItemSpriteExtra *m_refreshBtn; // x19 cocos2d::CCMenu *v76; // x22 __n128 v77; // q1 LoadingCircle *v78; // x0 __n128 v79; // q0 __n128 v80; // q1 TextArea *m_noInternet; // x19 __n128 v82; // q0 __n128 v83; // q1 cocos2d::CCMenu *v84; // x22 int v85; // w24 int v86; // w26 float v87; // s8 std::string *v88; // x0 __int64 v89; // x28 const char *v90; // x0 cocos2d::CCSprite *v91; // x19 CCMenuItemSpriteExtra *v92; // x23 __n128 v93; // q0 __n128 v94; // q1 char *v95; // x19 __n128 v96; // q0 cocos2d::CCMenu *v97; // x21 __n128 v98; // q1 GameLevelManager *v99; // x0 bool v101; // [xsp+Ch] [xbp-164h] void *v102[2]; // [xsp+10h] [xbp-160h] BYREF char v103; // [xsp+27h] [xbp-149h] void *v104[2]; // [xsp+28h] [xbp-148h] BYREF char v105; // [xsp+3Fh] [xbp-131h] void *v106[2]; // [xsp+40h] [xbp-130h] BYREF char v107; // [xsp+57h] [xbp-119h] cocos2d::CCPoint v108; // [xsp+58h] [xbp-118h] BYREF void *v109[2]; // [xsp+60h] [xbp-110h] BYREF char v110; // [xsp+77h] [xbp-F9h] float32x2_t v111; // [xsp+78h] [xbp-F8h] BYREF void *v112[2]; // [xsp+80h] [xbp-F0h] BYREF char v113; // [xsp+97h] [xbp-D9h] void *__p[2]; // [xsp+98h] [xbp-D8h] BYREF char v115; // [xsp+AFh] [xbp-C1h] float32x2_t v116; // [xsp+B0h] [xbp-C0h] BYREF float32x2_t v117; // [xsp+B8h] [xbp-B8h] BYREF __int128 __dst; // [xsp+C0h] [xbp-B0h] BYREF char *longStorage; // [xsp+D0h] [xbp-A0h] std::string v120; // [xsp+D8h] [xbp-98h] BYREF float v121; // [xsp+F0h] [xbp-80h] float v122; // [xsp+F4h] [xbp-7Ch] cocos2d::CCPoint v123; // 0:kr20_8.8 cocos2d::CCPoint v124; // 0:kr28_8.8 cocos2d::CCPoint v125; // 0:kr30_8.8 cocos2d::CCPoint v126; // 0:kr38_8.8 cocos2d::CCPoint v127; // 0:kr40_8.8 cocos2d::SEL_MenuHandler v128; // 0:x3.16 cocos2d::SEL_MenuHandler v129; // 0:x3.16 cocos2d::SEL_MenuHandler v130; // 0:x3.16 cocos2d::CCRect v131; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4 inited = FLAlertLayer::init_1(a1, 150); if ( inited ) { if ( a3 == Local ) { if ( GJGameLevel::isPlatformer(a2) ) a3 = Local; else a3 = 1; } m_levelType = a2->m_levelType; if ( m_levelType == Editor ) v10 = Local; else v10 = a3; a1->m_type = v10; a1->m_mode = a4; a1->m_level = a2; cocos2d::CCObject::retain(a2); isPlatformer = GJGameLevel::isPlatformer(a2); v12 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v12); sub_100022990((float *)&v120, 0.0, 0.0, 80.0, 80.0); v13 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v131); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v13->setOpacity)(v13, 255); sub_100022988((float *)&v120, 440.0, 290.0); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v13->setContentSize)(v13, &v120); v14 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v13, 0xFFFFFFFFLL); v14.n128_f32[0] = v121 * 0.5; v15.n128_f32[0] = v122 * 0.5; sub_100022980(v14, v15, &v120); ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, std::string *))v13->setPosition)(v13, &v120); v16 = cocos2d::CCMenu::create(); a1->m_buttonMenu = v16; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v16, 10); m_level = a1->m_level; if ( m_level->m_levelName.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( &__dst, (void *)m_level->m_levelName.m_data.m_long.capacitym1, m_level->m_levelName.m_data.m_long.size); } else { p_m_levelName = &m_level->m_levelName; __dst = *(_OWORD *)&p_m_levelName->m_data.m_short.sizex2; longStorage = p_m_levelName->m_data.m_long.longStorage; } if ( SHIBYTE(longStorage) >= 0 ) p_dst = (char *)&__dst; else p_dst = (char *)__dst; sub_100009900(&v120, p_dst); if ( SHIBYTE(longStorage) < 0 ) operator delete((void *)__dst); std::string::append(&v120, " Leaderboard"); if ( (v120.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v20 = &v120; else v20 = (std::string *)v120.__r_.__value_.__r.__words[0]; v21 = cocos2d::CCLabelBMFont::create_1((const char *)v20, "goldFont.fnt"); v22 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v21, 20); v22.n128_f32[0] = v121 * 0.5; v23.n128_f32[0] = (float)((float)(v122 * 0.5) + 145.0) + -18.0; sub_100022980(v22, v23, &__dst); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v21->setPosition)(v21, &__dst); cocos2d::CCLabelBMFont::limitLabelWidth(v21, 300.0, 0.8, 0.0); if ( isPlatformer ) { if ( a4 == Points ) v24 = "GJ_pointsIcon_001.png"; else v24 = "GJ_timeIcon_001.png"; sub_100009900(&__dst, v24); if ( SHIBYTE(longStorage) >= 0 ) v25 = (const char *)&__dst; else v25 = (const char *)__dst; v26 = cocos2d::CCSprite::createWithSpriteFrameName(v25); width = v26->m_obRect.size.width; ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v26, 20); v28 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v21->getPosition)(v21); v29 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v21->getContentSize)(v21); v30.n128_f64[0] = ((double (__fastcall *)(cocos2d::CCLabelBMFont *))v21->getScale)(v21); v30.n128_f32[0] = (float)((float)(v29 * v30.n128_f32[0]) * 0.5) + 2.5; v31.n128_u32[0] = -3.0; sub_100022980(v30, v31, &v116); *(float32x2_t *)&v32 = sub_1000229DC(v28, &v116, &v117); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v26->setPosition)(v26, &v117, v32); v33 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCLabelBMFont *))v21->getPosition)(v21); v34.n128_f32[0] = (float)(width * -0.5) + -2.5; v35.n128_u32[0] = 0; sub_100022980(v34, v35, &v116); *(float32x2_t *)&v36 = sub_1000229DC(v33, &v116, &v117); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float32x2_t *, double))v21->setPosition)(v21, &v117, v36); sub_100009900(__p, "GJ_timeIcon_001.png"); m_buttonMenu = a1->m_buttonMenu; v38.n128_u32[0] = 0; v39.n128_u32[0] = -0.5; sub_100022980(v38, v39, &v117); if ( a4 ) v40 = 1; else v40 = 2; SpriteButton = (CCMenuItemSpriteExtra *)LevelLeaderboard::getSpriteButton( a1, __p, LevelLeaderboard::onChangeMode, 0, m_buttonMenu, &v117, v40, 0.7); a1->m_timeBtn = SpriteButton; if ( v115 < 0 ) { operator delete(__p[0]); SpriteButton = a1->m_timeBtn; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))SpriteButton->setEnabled)(SpriteButton, a4 != Time); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_timeBtn->setTag)(a1->m_timeBtn, 0); sub_100009900(v112, "GJ_pointsIcon_001.png"); v42 = a1->m_buttonMenu; v43.n128_u32[0] = 0; v44.n128_u32[0] = -1.0; sub_100022980(v43, v44, &v117); if ( a4 == Points ) v45 = 2; else v45 = 1; m_pointsBtn = (CCMenuItemSpriteExtra *)LevelLeaderboard::getSpriteButton( a1, v112, LevelLeaderboard::onChangeMode, 0, v42, &v117, v45, 0.7); a1->m_pointsBtn = m_pointsBtn; if ( v113 < 0 ) { operator delete(v112[0]); m_pointsBtn = a1->m_pointsBtn; } ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))m_pointsBtn->setEnabled)(m_pointsBtn, a4 != Points); v47 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, __int64))a1->m_pointsBtn->setTag)(a1->m_pointsBtn, 1); v47.n128_f32[0] = (float)((float)(v121 * 0.5) + -220.0) + 25.0; v48 = a1->m_buttonMenu; m_mainLayer = a1->m_mainLayer; v50.n128_f32[0] = (float)(v122 * 0.5) + 40.0; sub_100022980(v47, v50, &v111); cocos2d::CCNode::convertToWorldSpace(m_mainLayer, (const cocos2d::CCPoint *)&v111); cocos2d::CCNode::convertToNodeSpace(v48, (const cocos2d::CCPoint *)&v116); m_timeBtn = a1->m_timeBtn; v52.n128_u32[0] = 0; v53.n128_u32[0] = 20.0; sub_100022980(v52, v53, &v111); *(float32x2_t *)&v54 = sub_1000229DC(&v117, &v111, &v116); v55 = ((__n128 (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))m_timeBtn->setPosition)( m_timeBtn, &v116, v54); v56 = a1->m_pointsBtn; v55.n128_u32[0] = 0; v57.n128_u32[0] = -20.0; sub_100022980(v55, v57, &v111); *(float32x2_t *)&v58 = sub_1000229DC(&v117, &v111, &v116); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, double))v56->setPosition)(v56, &v116, v58); if ( m_levelType == Editor ) { sub_100009900(v109, "edit_delBtn_001.png"); v59 = a1->m_buttonMenu; v60.n128_u32[0] = 0; v61.n128_u32[0] = -0.5; sub_100022980(v60, v61, &v116); v62 = LevelLeaderboard::getSpriteButton(a1, v109, LevelLeaderboard::onDeleteLocalScores, 0, v59, &v116, 4, 0.7); if ( v110 < 0 ) operator delete(v109[0]); v63.n128_f32[0] = (float)((float)(v121 * 0.5) + 220.0) + -25.0; v64.n128_f32[0] = (float)((float)(v122 * 0.5) + 145.0) + -23.0; sub_100022980(v63, v64, &v116); v65 = a1->m_buttonMenu; cocos2d::CCNode::convertToWorldSpace(a1->m_mainLayer, (const cocos2d::CCPoint *)&v116); v123 = cocos2d::CCNode::convertToNodeSpace(v65, &v108); (*(void (__fastcall **)(__int64, float32x2_t *, float, float))(*(_QWORD *)v62 + 184LL))( v62, &v111, v123.x, v123.y); } if ( SHIBYTE(longStorage) < 0 ) operator delete((void *)__dst); } if ( a1->m_level->m_accountID.random == a1->m_level->m_accountID.seed ) { v66 = GameLevelManager::sharedState(); GameLevelManager::accountIDForUserID(v66, a1->m_level->m_userID.random - a1->m_level->m_userID.seed); } v67 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v128.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelLeaderboard::onClose; v128.adj = 0; v68 = CCMenuItemSpriteExtra::create(v67, nullptr, a1, v128); ((void (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v68); CCMenuItemSpriteExtra::setSizeMult(v68, 1.6); v69.n128_f32[0] = (float)((float)(v121 * 0.5) + -220.0) + 10.0; v70 = a1->m_buttonMenu; v71.n128_f32[0] = (float)((float)(v122 * 0.5) + 145.0) + -10.0; sub_100022980(v69, v71, &v117); v124 = cocos2d::CCNode::convertToNodeSpace(v70, (const cocos2d::CCPoint *)&v117); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *, float, float))v68->setPosition)( v68, &__dst, v124.x, v124.y); v72 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_updateBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v72->setScale)(v72, 0.6); v129.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelLeaderboard::onUpdate; v129.adj = 0; v73 = CCMenuItemSpriteExtra::create(v72, nullptr, a1, v129); a1->m_refreshBtn = v73; CCMenuItemSpriteExtra::setSizeMult(v73, 1.5); v74 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild)( a1->m_buttonMenu, a1->m_refreshBtn); v74.n128_f32[0] = (float)((float)(v121 * 0.5) + 220.0) + -25.0; m_refreshBtn = a1->m_refreshBtn; v76 = a1->m_buttonMenu; v77.n128_f32[0] = (float)(v122 * 0.5) + 100.0; sub_100022980(v74, v77, &v117); v125 = cocos2d::CCNode::convertToNodeSpace(v76, (const cocos2d::CCPoint *)&v117); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *, float, float))m_refreshBtn->setPosition)( m_refreshBtn, &__dst, v125.x, v125.y); ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_refreshBtn->setVisible)(a1->m_refreshBtn, 0); v78 = LoadingCircle::create(); a1->m_circle = v78; v78->m_parentLayer = a1->m_mainLayer; v78->m_fade = 0; cocos2d::CCObject::retain(v78); LoadingCircle::show(a1->m_circle); ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_circle->setVisible)(a1->m_circle, 0); sub_100009900(v106, "No Internet connection!"); v79.n128_u32[0] = 0.5; v80.n128_u32[0] = 1.0; sub_100022980(v79, v80, &__dst); m_noInternet = (TextArea *)TextArea::create( (__int64)v106, (__int64)"bigFont.fnt", (__int64 *)&__dst, 0, 1.0, 600.0, 20.0); a1->m_noInternet = m_noInternet; if ( v107 < 0 ) { operator delete(v106[0]); m_noInternet = a1->m_noInternet; } m_noInternet->m_height = 30.0; v82.n128_f32[0] = v121 * 0.5; v83.n128_f32[0] = (float)(v122 * 0.5) + 10.0; sub_100022980(v82, v83, &__dst); ((void (__fastcall *)(TextArea *, __int128 *))m_noInternet->setPosition)(m_noInternet, &__dst); ((void (__fastcall *)(TextArea *, float))a1->m_noInternet->setScale)(a1->m_noInternet, 0.6); ((void (__fastcall *)(cocos2d::CCLayer *, TextArea *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, a1->m_noInternet, 2); ((void (__fastcall *)(TextArea *, _QWORD))a1->m_noInternet->setVisible)(a1->m_noInternet, 0); v101 = inited; if ( m_levelType != Editor ) { v84 = cocos2d::CCMenu::create(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v84, 2); v85 = 0; if ( isPlatformer ) v86 = 4; else v86 = 3; if ( isPlatformer ) v87 = 15.0; else v87 = 0.0; while ( 1 ) { v88 = (std::string *)sub_100009900(&__dst, ""); v89 = 0; if ( v85 > 1 ) { if ( v85 == 2 ) { std::string::assign(v88, "levelLeaderboard_globalWeeklyBtn_001.png"); v89 = 2; } else if ( v85 == 3 ) { std::string::assign(v88, "levelLeaderboard_localBtn_001.png"); v89 = 3; } } else if ( v85 ) { if ( v85 == 1 ) { std::string::assign(v88, "levelLeaderboard_globalBtn_001.png"); v89 = 1; } } else { std::string::assign(v88, "levelLeaderboard_friendsBtn_001.png"); v89 = 0; } if ( SHIBYTE(longStorage) < 0 ) break; if ( HIBYTE(longStorage) ) { v90 = (const char *)&__dst; LABEL_68: v91 = cocos2d::CCSprite::createWithSpriteFrameName(v90); v130.ptr = (void (__cdecl *)(cocos2d::CCObject *))LevelLeaderboard::onChangeType; v130.adj = 0; v92 = CCMenuItemSpriteExtra::create(v91, nullptr, a1, v130); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))v92->setTag)(v92, v89); v93 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))v84->addChild)(v84, v92); v93.n128_f32[0] = (float)((float)(v121 * 0.5) + 220.0) + -25.0; v94.n128_f32[0] = v87 + (float)((float)((float)(v122 * 0.5) + 42.0) - (float)((float)(unsigned int)v85 * 42.0)); sub_100022980(v93, v94, &v116); v126 = cocos2d::CCNode::convertToNodeSpace(v84, (const cocos2d::CCPoint *)&v116); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float32x2_t *, float, float))v92->setPosition)( v92, &v117, v126.x, v126.y); if ( (_DWORD)v89 == a1->m_type ) { ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))v92->setEnabled)(v92, 0); v117.i8[2] = -106; v117.i16[0] = -26986; ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v91->setColor)(v91, &v117); } if ( (SHIBYTE(longStorage) & 0x80000000) == 0 ) goto LABEL_72; goto LABEL_71; } LABEL_72: if ( v86 == ++v85 ) goto LABEL_73; } if ( *((_QWORD *)&__dst + 1) ) { v90 = (const char *)__dst; goto LABEL_68; } LABEL_71: operator delete((void *)__dst); goto LABEL_72; } LABEL_73: LOBYTE(inited) = v101; if ( GJGameLevel::getNormalPercent(a1->m_level) > a1->m_level->m_newNormalPercent2.random - a1->m_level->m_newNormalPercent2.seed ) { sub_100009900(v104, "Level Leaderboards"); sub_100009900( v102, "Q: My score is wrong!?\n" "A: Level leaderboards changed in update 2.11. Scores from before update 2.11 need to be replayed. You can see yo" "ur leaderboard percentage by pressing the info button on the bottom left of the level page, or toggle the Leader" "board percent option."); v95 = InfoAlertButton::create((__int64)v104, (__int64)v102, 1.0); if ( v103 < 0 ) operator delete(v102[0]); if ( v105 < 0 ) operator delete(v104[0]); v96 = ((__n128 (__fastcall *)(cocos2d::CCMenu *, char *))a1->m_buttonMenu->addChild)(a1->m_buttonMenu, v95); v97 = a1->m_buttonMenu; v96.n128_f32[0] = (float)((float)(v121 * 0.5) + 220.0) + -5.0; v98.n128_f32[0] = (float)((float)(v122 * 0.5) + 145.0) + -5.0; sub_100022980(v96, v98, &v117); v127 = cocos2d::CCNode::convertToNodeSpace(v97, (const cocos2d::CCPoint *)&v117); (*(void (__fastcall **)(char *, __int128 *, float, float))(*(_QWORD *)v95 + 184LL))(v95, &__dst, v127.x, v127.y); } if ( GameManager::sharedState()->m_scoreValid || a1->m_type == Local ) { LevelLeaderboard::loadScores(a1); } else { LevelLeaderboard::setupLeaderboard(a1, nullptr); GameLevelManager::sharedState()->m_leaderboardManagerDelegate = &a1->LeaderboardManagerDelegate; v99 = GameLevelManager::sharedState(); GameLevelManager::updateUserScore(v99); } if ( SHIBYTE(v120.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v120.__r_.__value_.__l.__data_); } return inited; }
GD Web Decomp Icon

GD Web Decomp

Raw Source