// // LevelLeaderboard::init from 0x615174 to 0x615cf8 (2948 bytes) // // 1 xrefs: // > LevelLeaderboard::create @ 0x615e5c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:54:55 +0000 // GameManager *__fastcall LevelLeaderboard::init(int a1, GJGameLevel *a2, int a3, int a4) { cocos2d::CCSprite *v4; // r9 int v9; // r3 int v10; // r5 void (__fastcall *v11)(int, _DWORD *); // r7 int (__fastcall *v12)(int, _DWORD *); // r7 cocos2d::CCMenu *v13; // r0 int v14; // r0 int v15; // r3 int *v16; // r3 int v17; // r1 cocos2d::CCSprite *v18; // r2 size_t v19; // r0 int v20; // r9 unsigned int v21; // r1 cocos2d::CCLabelBMFont *v22; // r5 int v23; // r3 const char *v24; // r2 cocos2d::CCLabelBMFont *v25; // r0 cocos2d::CCLabelBMFont *v26; // r5 void (__fastcall *v27)(cocos2d::CCLabelBMFont *, _DWORD *); // r9 GameLevelManager *v28; // r0 const char *v29; // r1 const char *v30; // r9 size_t v31; // r0 cocos2d::CCSprite *v32; // r0 float *v33; // r7 float v34; // s23 int v35; // r10 float v36; // s17 float v37; // r0 int v38; // r10 int v39; // r10 char *v40; // r3 int v41; // r1 int v42; // r6 char *v43; // r3 const cocos2d::CCPoint *v44; // r5 const cocos2d::CCPoint *v45; // r6 int v46; // r6 void (__fastcall *v47)(int, _DWORD *); // r8 int v48; // r5 void (__fastcall *v49)(int, _DWORD *); // r8 int v50; // r5 _DWORD *SpriteButton; // r5 const cocos2d::CCPoint *v52; // r9 void (__fastcall *v53)(_DWORD *, _DWORD *); // r8 int v54; // r0 cocos2d::CCDictionary **v55; // r0 int v56; // r6 const cocos2d::CCPoint *v57; // r9 void (__fastcall *v58)(int, _DWORD *); // r8 const char *v59; // r1 int v60; // r6 int v61; // r0 int v62; // r6 const cocos2d::CCPoint *v63; // r9 void (__fastcall *v64)(int, _DWORD *); // r8 LoadingCircle *v65; // r0 cocos2d::CCLayerColor *v66; // r0 int v67; // r3 float v68; // s15 int v69; // r6 void (__fastcall *v70)(int, _DWORD *); // r7 cocos2d::CCMenu *v71; // r0 GameManager *NormalPercent; // r0 const cocos2d::CCPoint *v73; // r9 float v74; // s16 bool v75; // zf int v76; // r10 int v77; // r3 const char *v78; // r1 int v79; // r7 cocos2d::CCSprite *v80; // r0 int v81; // r6 void (__fastcall *v82)(int, _BYTE *); // r2 int v83; // r7 const cocos2d::CCPoint *v84; // r9 int (__fastcall *v85)(int, _BYTE *); // r8 int v86; // r0 GameLevelManager *v87; // r0 GameLevelManager *v88; // r0 GameLevelManager *v89; // r0 _BOOL4 v91; // [sp+14h] [bp-D8h] int v92; // [sp+14h] [bp-D8h] GameManager *v93; // [sp+1Ch] [bp-D0h] _BOOL4 isPlatformer; // [sp+20h] [bp-CCh] int v95; // [sp+20h] [bp-CCh] void (__fastcall *v96)(float *, _DWORD *); // [sp+24h] [bp-C8h] void (__fastcall *v97)(cocos2d::CCLabelBMFont *, _DWORD *); // [sp+24h] [bp-C8h] void (__fastcall *v98)(int, _BYTE *); // [sp+24h] [bp-C8h] float v99; // [sp+40h] [bp-ACh] BYREF float v100; // [sp+44h] [bp-A8h] _BYTE v101[8]; // [sp+48h] [bp-A4h] BYREF _BYTE v102[8]; // [sp+50h] [bp-9Ch] BYREF _DWORD (*v103)(LevelLeaderboard *__hidden, cocos2d::CCObject *); // [sp+58h] [bp-94h] int v104; // [sp+5Ch] [bp-90h] _DWORD (*v105)(LevelLeaderboard *__hidden, cocos2d::CCObject *); // [sp+60h] [bp-8Ch] int v106; // [sp+64h] [bp-88h] int (__fastcall *v107)(LevelLeaderboard *, cocos2d::CCObject *); // [sp+68h] [bp-84h] int v108; // [sp+6Ch] [bp-80h] _DWORD v109[2]; // [sp+70h] [bp-7Ch] BYREF _DWORD v110[2]; // [sp+78h] [bp-74h] BYREF int v111; // [sp+80h] [bp-6Ch] BYREF int v112; // [sp+84h] [bp-68h] cocos2d::CCLabelBMFont *v113; // [sp+88h] [bp-64h] int v114[3]; // [sp+8Ch] [bp-60h] BYREF int v115[3]; // [sp+98h] [bp-54h] BYREF int v116[3]; // [sp+A4h] [bp-48h] BYREF int v117[3]; // [sp+B0h] [bp-3Ch] BYREF int v118[3]; // [sp+BCh] [bp-30h] BYREF int v119; // [sp+C8h] [bp-24h] BYREF int v120; // [sp+CCh] [bp-20h] cocos2d::CCSprite *v121; // [sp+D0h] [bp-1Ch] _DWORD v122[4]; // [sp+D4h] [bp-18h] BYREF v93 = FLAlertLayer::init((FLAlertLayer *)a1, 150); if ( !v93 ) return v93; if ( a3 == 3 && !GJGameLevel::isPlatformer(a2) ) a3 = 1; v9 = *((_DWORD *)a2 + 238); *(_DWORD *)(a1 + 528) = a2; *(_DWORD *)(a1 + 536) = a4; v91 = v9 == 2; if ( v9 == 2 ) a3 = 3; *(_DWORD *)(a1 + 532) = a3; cocos2d::CCObject::retain(a2); isPlatformer = GJGameLevel::isPlatformer(a2); cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)isPlatformer); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v99); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v122, 0.0, 0.0, 80.0, 80.0); v10 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v122); (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 456))(v10, 255); v11 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v122, 440.0, 290.0); v11(v10, v122); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v10, -1); v12 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v99 * 0.5, v100 * 0.5); v13 = (cocos2d::CCMenu *)v12(v10, v122); v14 = cocos2d::CCMenu::create(v13); *(_DWORD *)(a1 + 444) = v14; (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v14, 10); v15 = *(_DWORD *)(a1 + 528); v119 = 0; v120 = 0; v121 = nullptr; if ( (*(_BYTE *)(v15 + 280) & 1) != 0 ) { std::string::__init(&v119, *(const void **)(v15 + 288), *(_DWORD *)(v15 + 284)); } else { v16 = (int *)(v15 + 280); v17 = v16[1]; v18 = (cocos2d::CCSprite *)v16[2]; v119 = *v16; v120 = v17; v121 = v18; } if ( (v119 & 1) == 0 ) v4 = (cocos2d::CCSprite *)((char *)&v119 + 1); v111 = 0; if ( (v119 & 1) != 0 ) v4 = v121; v112 = 0; v113 = nullptr; v19 = strlen((const char *)v4); std::string::__init(&v111, v4, v19); std::string::~string((int)&v119); if ( (v111 & 1) != 0 ) { v20 = v112; v21 = (v111 & 0xFFFFFFFE) - 1; } else { v20 = (int)(unsigned __int8)v111 >> 1; v21 = 10; } if ( v21 - v20 <= 0xB ) { std::string::__grow_by_and_replace((int)&v111, v21, v20 + 12 - v21, v20, v20, 0, 0xCu, " Leaderboard"); } else { if ( (v111 & 1) != 0 ) v22 = v113; else v22 = (cocos2d::CCLabelBMFont *)((char *)&v111 + 1); std::char_traits::copy((char *)v22 + v20, " Leaderboard", 0xCu); v23 = v20 + 12; if ( (v111 & 1) != 0 ) v112 = v20 + 12; else LOBYTE(v111) = 2 * v23; v24 = nullptr; *((_BYTE *)v22 + v23) = 0; } if ( (v111 & 1) != 0 ) v25 = v113; else v25 = (cocos2d::CCLabelBMFont *)((char *)&v111 + 1); v26 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v25, "goldFont.fnt", v24); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), v26, 20); v27 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v99 * 0.5, (float)((float)(v100 * 0.5) + 145.0) - 18.0); v27(v26, v122); v28 = (GameLevelManager *)cocos2d::CCLabelBMFont::limitLabelWidth(v26, 300.0, 0.8, 0.0); if ( isPlatformer ) { if ( a4 == 1 ) v30 = "GJ_pointsIcon_001.png"; else v30 = "GJ_timeIcon_001.png"; v119 = 0; v120 = 0; v121 = nullptr; v31 = strlen(v30); std::string::__init(&v119, v30, v31); if ( (v119 & 1) != 0 ) v32 = v121; else v32 = (cocos2d::CCSprite *)((char *)&v119 + 1); v33 = (float *)cocos2d::CCSprite::createWithSpriteFrameName(v32, (const char *)((unsigned __int8)v119 << 31)); v34 = v33[86]; (*(void (__fastcall **)(_DWORD, float *, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v33, 20); v96 = *(void (__fastcall **)(float *, _DWORD *))(*(_DWORD *)v33 + 92); v35 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v26 + 96))(v26); v36 = *(float *)(*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v26 + 164))(v26); v37 = (*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v26 + 84))(v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v110, (float)((float)(v36 * v37) * 0.5) + 2.5, -3.0); cocos2d::CCPoint::operator+(v122, v35, v110); v96(v33, v122); v97 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v26 + 92); v38 = (*(int (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_DWORD *)v26 + 96))(v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v110, (float)-(float)(v34 * 0.5) - 2.5, 0.0); cocos2d::CCPoint::operator+(v122, v38, v110); v97(v26, v122); memset(v114, 0, sizeof(v114)); std::string::__init(v114, "GJ_timeIcon_001.png", 0x13u); v39 = *(_DWORD *)(a1 + 444); v104 = 0; v103 = LevelLeaderboard::onChangeMode; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 0.0, -0.5); if ( a4 ) v40 = (_BYTE *)(&dword_0 + 1); else v40 = (_BYTE *)(&dword_0 + 2); *(_DWORD *)(a1 + 560) = LevelLeaderboard::getSpriteButton( a1, (int)v114, (int)v103, v104, v39, 1060320051, (const cocos2d::CCPoint *)v122, v40); std::string::~string((int)v114); v41 = a4; if ( a4 ) v41 = 1; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 560) + 528))(*(_DWORD *)(a1 + 560), v41); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 560) + 36))(*(_DWORD *)(a1 + 560), 0); memset(v115, 0, sizeof(v115)); std::string::__init(v115, "GJ_pointsIcon_001.png", 0x15u); v106 = 0; v105 = LevelLeaderboard::onChangeMode; v42 = *(_DWORD *)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 0.0, -1.0); if ( a4 == 1 ) v43 = (_BYTE *)(&dword_0 + 2); else v43 = (_BYTE *)(&dword_0 + 1); *(_DWORD *)(a1 + 564) = LevelLeaderboard::getSpriteButton( a1, (int)v115, (int)v105, v106, v42, 1060320051, (const cocos2d::CCPoint *)v122, v43); std::string::~string((int)v115); (*(void (__fastcall **)(_DWORD, bool))(**(_DWORD **)(a1 + 564) + 528))(*(_DWORD *)(a1 + 564), a4 != 1); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 564) + 36))(*(_DWORD *)(a1 + 564), 1); v44 = *(const cocos2d::CCPoint **)(a1 + 444); v45 = *(const cocos2d::CCPoint **)(a1 + 460); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v110, (float)((float)(v99 * 0.5) - 220.0) + 25.0, (float)(v100 * 0.5) + 40.0); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v122, v45); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v102, v44); v46 = *(_DWORD *)(a1 + 560); v47 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v46 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v110, 0.0, 20.0); cocos2d::CCPoint::operator+(v122, v102, v110); v47(v46, v122); v48 = *(_DWORD *)(a1 + 564); v49 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v48 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v110, 0.0, -20.0); cocos2d::CCPoint::operator+(v122, v102, v110); v49(v48, v122); if ( v91 ) { memset(v116, 0, sizeof(v116)); std::string::__init(v116, "edit_delBtn_001.png", 0x13u); v108 = 0; v50 = *(_DWORD *)(a1 + 444); v107 = LevelLeaderboard::onDeleteLocalScores; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 0.0, -0.5); SpriteButton = LevelLeaderboard::getSpriteButton( a1, (int)v116, (int)v107, v108, v50, 1060320051, (const cocos2d::CCPoint *)v122, byte_4); std::string::~string((int)v116); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v109, (float)((float)(v99 * 0.5) + 220.0) - 25.0, (float)((float)(v100 * 0.5) + 145.0) - 23.0); v52 = *(const cocos2d::CCPoint **)(a1 + 444); v53 = *(void (__fastcall **)(_DWORD *, _DWORD *))(*SpriteButton + 92); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v110, *(const cocos2d::CCPoint **)(a1 + 460)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v122, v52); v53(SpriteButton, v122); } v28 = (GameLevelManager *)std::string::~string((int)&v119); } if ( *(_DWORD *)(*(_DWORD *)(a1 + 528) + 416) == *(_DWORD *)(*(_DWORD *)(a1 + 528) + 420) ) { v55 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(v28); GameLevelManager::accountIDForUserID( v55, *(_DWORD *)(*(_DWORD *)(a1 + 528) + 404) - *(_DWORD *)(*(_DWORD *)(a1 + 528) + 408)); } v54 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v29); v109[1] = 0; v109[0] = LevelLeaderboard::onClose; v56 = CCMenuItemSpriteExtra::create(v54, 0, a1, (int)LevelLeaderboard::onClose, 0); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v56); CCMenuItemSpriteExtra::setSizeMult(v56, 1.6); v57 = *(const cocos2d::CCPoint **)(a1 + 444); v58 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v56 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v110, (float)((float)(v99 * 0.5) - 220.0) + 10.0, (float)((float)(v100 * 0.5) + 145.0) - 10.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v122, v57); v58(v56, v122); v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v59); (*(void (__fastcall **)(int, int))(*(_DWORD *)v60 + 80))(v60, 1058642330); v110[1] = 0; v110[0] = LevelLeaderboard::onUpdate; v61 = CCMenuItemSpriteExtra::create(v60, 0, a1, (int)LevelLeaderboard::onUpdate, 0); *(_DWORD *)(a1 + 556) = v61; CCMenuItemSpriteExtra::setSizeMult(v61, 1.5); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 556)); v62 = *(_DWORD *)(a1 + 556); v63 = *(const cocos2d::CCPoint **)(a1 + 444); v64 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v62 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v102, (float)((float)(v99 * 0.5) + 220.0) - 25.0, (float)(v100 * 0.5) + 100.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v122, v63); v64(v62, v122); v65 = (LoadingCircle *)(*(int (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 556) + 172))( *(_DWORD *)(a1 + 556), 0); v66 = LoadingCircle::create(v65); v67 = *(_DWORD *)(a1 + 460); *(_DWORD *)(a1 + 548) = v66; *((_DWORD *)v66 + 111) = v67; *(_BYTE *)(*(_DWORD *)(a1 + 548) + 448) = 0; cocos2d::CCObject::retain(*(cocos2d::CCObject **)(a1 + 548)); LoadingCircle::show(*(cocos2d::CCNode ***)(a1 + 548)); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 548) + 172))(*(_DWORD *)(a1 + 548), 0); memset(v117, 0, sizeof(v117)); std::string::__init(v117, "No Internet connection!", 0x1Fu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, 0.5, 1.0); *(_DWORD *)(a1 + 552) = TextArea::create( (int)v117, "bigFont.fnt", 1065353216, 1142292480, (const cocos2d::CCPoint *)v122, 1101004800, 0, 0); std::string::~string((int)v117); v68 = v99 * 0.5; *(_DWORD *)(*(_DWORD *)(a1 + 552) + 544) = 1106247680; v69 = *(_DWORD *)(a1 + 552); v70 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v69 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v122, v68, (float)(v100 * 0.5) + 10.0); v70(v69, v122); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 552) + 80))(*(_DWORD *)(a1 + 552), 1058642330); (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 552), 2); v71 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 552) + 172))( *(_DWORD *)(a1 + 552), 0); if ( !v91 ) { v73 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v71); (*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**(_DWORD **)(a1 + 460) + 232))( *(_DWORD *)(a1 + 460), v73, 2); v74 = 15.0; v75 = !isPlatformer; v76 = 0; if ( isPlatformer ) v77 = 4; else v77 = 3; v95 = v77; if ( v75 ) v74 = 0.0; do { v119 = 0; v120 = 0; v121 = nullptr; std::string::__init(&v119, &unk_B6B226, 0); switch ( v76 ) { case 2: std::string::assign(&v119, "levelLeaderboard_globalWeeklyBtn_001.png"); v79 = 2; break; case 3: std::string::assign(&v119, "levelLeaderboard_localBtn_001.png"); v79 = 3; break; case 1: std::string::assign(&v119, "levelLeaderboard_globalBtn_001.png"); v79 = 1; break; default: std::string::assign(&v119, "levelLeaderboard_friendsBtn_001.png"); v79 = 0; break; } if ( (v119 & 1) != 0 ) { if ( v120 ) { v80 = v121; goto LABEL_68; } } else if ( (unsigned __int8)v119 >> 1 ) { v80 = (cocos2d::CCSprite *)((char *)&v119 + 1); LABEL_68: v92 = cocos2d::CCSprite::createWithSpriteFrameName(v80, v78); v122[1] = 0; v122[0] = LevelLeaderboard::onChangeType; v81 = CCMenuItemSpriteExtra::create(v92, 0, a1, (int)LevelLeaderboard::onChangeType, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v81 + 36))(v81, v79); (*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v73 + 228))(v73, v81); v98 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v81 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v101, (float)((float)(v99 * 0.5) + 220.0) - 25.0, (float)((float)((float)(v100 * 0.5) + 42.0) - (float)((float)v76 * 42.0)) + v74); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v102, v73); v98(v81, v102); if ( v79 == *(_DWORD *)(a1 + 532) ) { (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v81 + 528))(v81, 0); v82 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v92 + 480); memset(v102, 150, 3); v82(v92, v102); } } ++v76; std::string::~string((int)&v119); } while ( v76 != v95 ); } NormalPercent = (GameManager *)GJGameLevel::getNormalPercent(*(GJGameLevel **)(a1 + 528)); if ( (int)NormalPercent > *(_DWORD *)(*(_DWORD *)(a1 + 528) + 700) - *(_DWORD *)(*(_DWORD *)(a1 + 528) + 704) ) { memset(v118, 0, sizeof(v118)); std::string::__init(v118, "Level Leaderboards", 0x12u); v119 = 0; v120 = 0; v121 = nullptr; std::string::__init( &v119, "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 your" " leaderboard percentage by pressing the info button on the bottom left of the level page, or toggle the Leaderboar" "d percent option.", 0x114u); v83 = InfoAlertButton::create((char *)v118, (int)&v119, 1065353216); std::string::~string((int)&v119); std::string::~string((int)v118); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v83); v84 = *(const cocos2d::CCPoint **)(a1 + 444); v85 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v83 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v101, (float)((float)(v99 * 0.5) + 220.0) - 5.0, (float)((float)(v100 * 0.5) + 145.0) - 5.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v102, v84); NormalPercent = (GameManager *)v85(v83, v102); } v86 = GameManager::sharedState(NormalPercent); if ( *(_BYTE *)(v86 + 460) || *(_DWORD *)(a1 + 532) == 3 ) { LevelLeaderboard::loadScores((LevelLeaderboard *)a1); } else { v87 = (GameLevelManager *)LevelLeaderboard::setupLeaderboard( (LevelLeaderboard *)a1, (cocos2d::CCArray *)*(unsigned __int8 *)(v86 + 460)); v88 = (GameLevelManager *)GameLevelManager::sharedState(v87); *((_DWORD *)v88 + 214) = a1 + 520; v89 = (GameLevelManager *)GameLevelManager::sharedState(v88); GameLevelManager::updateUserScore(v89); } std::string::~string((int)&v111); return v93; }
GD Web Decomp Icon

GD Web Decomp

Raw Source