// // LeaderboardsLayer::loadLeaderboardFinished from 0x81fab8 to 0x81fc0c (340 bytes) // // 3 xrefs: // > `non-virtual thunk to'LeaderboardsLayer::loadLeaderboardFinished @ 0x81fc10 // > @ 0x56178 // > @ 0x1186b28 // // 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 // void LeaderboardsLayer::loadLeaderboardFinished(LeaderboardsLayer *a1, cocos2d::CCArray *a2, const char *a3) { _BOOL4 isCorrect; // w21 char *v6; // x0 cocos2d::CCArray *m_userScores; // x0 unsigned int *v8; // x2 int v9; // w1 _DWORD *v10; // [xsp+40h] [xbp+40h] BYREF sub_D153B8((int)&v10, (char *)a3); isCorrect = LeaderboardsLayer::isCorrect((__int64)a1, (const void **)&v10); v6 = (char *)(v10 - 6); if ( v10 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v8 = v10 - 2; do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(v10 - 2); *(v10 - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v6); } if ( isCorrect ) { m_userScores = a1->m_userScores; if ( m_userScores ) cocos2d::CCObject::release(m_userScores); a1->m_userScores = a2; cocos2d::CCObject::retain(a2); LeaderboardsLayer::setupLevelBrowser(a1, a1->m_userScores); a1->m_circle->setVisible(a1->m_circle, 0); a1->m_noInternet->setVisible(a1->m_noInternet, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source