// // ProfilePage::onMyLevels from 0x8f8cb0 to 0x8f8e7c (460 bytes) // // 3 xrefs: // > @ 0x30ff0 // > ProfilePage::loadPageFromUserInfo @ 0x8fa844 // > @ 0x1229740 // // 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 ProfilePage::onMyLevels(ProfilePage *a1, cocos2d::CCObject *a2) { cocos2d::CCDirector *v3; // x21 cocos2d::CCDirector *v4; // x0 GameLevelManager *v5; // x0 cocos2d::CCDirector *v6; // x20 cocos2d::CCString *v7; // x0 char *CString; // x0 GJSearchObject *v9; // x0 cocos2d::CCScene *v10; // x0 cocos2d::CCTransitionFade *v11; // x0 void *v12; // x0 unsigned int *v13; // x2 int v14; // w1 cocos2d::CCDirector *v15; // x20 GJSearchObject *v16; // x0 cocos2d::CCScene *v17; // x0 cocos2d::CCTransitionFade *v18; // x0 cocos2d::CCDirector *v19; // x21 char *v20; // [xsp+38h] [xbp+38h] __int64 v21; // [xsp+50h] [xbp+50h] BYREF if ( a1->m_ownProfile ) { v15 = cocos2d::CCDirector::sharedDirector(); v16 = (GJSearchObject *)GJSearchObject::create(98); v17 = LevelBrowserLayer::scene(v16); v18 = cocos2d::CCTransitionFade::create(0.5, v17); cocos2d::CCDirector::pushScene(v15, v18); } else if ( !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning ) { if ( cocos2d::CCDirector::sharedDirector()->m_pRunningScene->m_eObjType != MenuLayerObjectType ) { if ( cocos2d::CCDirector::sharedDirector()->m_pSceneReference ) { v3 = cocos2d::CCDirector::sharedDirector(); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::popToSceneInStack(v3, v4->m_pSceneReference); } else { v19 = cocos2d::CCDirector::sharedDirector(); v19->m_pSceneReference = cocos2d::CCDirector::sharedDirector()->m_pRunningScene; } } v5 = GameLevelManager::sharedState(); v20 = (char *)(unsigned int)GameLevelManager::userIDForAccountID(v5, a1->m_accountID); v6 = cocos2d::CCDirector::sharedDirector(); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v20); CString = (char *)cocos2d::CCString::getCString(v7); sub_D153B8((int)&v21, CString); v9 = GJSearchObject::create(UsersLevels); v10 = LevelBrowserLayer::scene(v9); v11 = cocos2d::CCTransitionFade::create(0.5, v10); cocos2d::CCDirector::pushScene(v6, v11); v12 = (void *)(v21 - 24); if ( (__int64 *)(v21 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v21 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v21 - 8); *(_DWORD *)(v21 - 8) = v14 - 1; } if ( v14 <= 0 ) operator delete(v12); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source