// // GJScoreCell::onViewProfile from 0x60bf50 to 0x60c10c (444 bytes) // // 3 xrefs: // > @ 0x40830 // > GJScoreCell::loadFromScore @ 0x618de8 // > @ 0x122a0c0 // // 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 GJScoreCell::onViewProfile(GJScoreCell *a1, cocos2d::CCObject *a2) { GJUserScore *m_score; // x1 int m_accountID; // w0 ProfilePage *v5; // x0 cocos2d::CCDirector *v6; // x21 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x21 cocos2d::CCString *v9; // x0 char *CString; // x0 GJSearchObject *v11; // x0 cocos2d::CCScene *v12; // x0 cocos2d::CCTransitionFade *v13; // x0 void *v14; // x0 unsigned int *v15; // x2 int v16; // w1 cocos2d::CCDirector *v17; // x21 __int64 v18; // [xsp+40h] [xbp+40h] BYREF m_score = a1->m_score; if ( m_score && (m_accountID = m_score->m_accountID, m_accountID > 0) ) { v5 = ProfilePage::create(m_accountID, 0); v5->show(v5); } else if ( m_score->m_scoreType == 1 && !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning ) { if ( cocos2d::CCDirector::sharedDirector()->m_pRunningScene->m_eObjType != MenuLayerObjectType ) { if ( cocos2d::CCDirector::sharedDirector()->m_pSceneReference ) { v6 = cocos2d::CCDirector::sharedDirector(); v7 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::popToSceneInStack(v6, v7->m_pSceneReference); } else { v17 = cocos2d::CCDirector::sharedDirector(); v17->m_pSceneReference = cocos2d::CCDirector::sharedDirector()->m_pRunningScene; } } v8 = cocos2d::CCDirector::sharedDirector(); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a1->m_score->m_userID); CString = (char *)cocos2d::CCString::getCString(v9); sub_D153B8((int)&v18, CString); v11 = GJSearchObject::create(UsersLevels); v12 = LevelBrowserLayer::scene(v11); v13 = cocos2d::CCTransitionFade::create(0.5, v12); cocos2d::CCDirector::pushScene(v8, v13); v14 = (void *)(v18 - 24); if ( (__int64 *)(v18 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v18 - 8); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(_DWORD *)(v18 - 8); *(_DWORD *)(v18 - 8) = v16 - 1; } if ( v16 <= 0 ) operator delete(v14); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source