// // ProfilePage::onMyLevels from 0x4c46c4 to 0x4c47b4 (240 bytes) // // 0 xrefs: // // 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; // r4 GJSearchObject *v4; // r0 cocos2d::CCScene *v5; // r0 cocos2d::CCTransitionFade *v6; // r0 cocos2d::CCDirector *v7; // r6 cocos2d::CCDirector *v8; // r6 cocos2d::CCDirector *v9; // r0 GameLevelManager *v10; // r0 const char *v11; // r4 cocos2d::CCDirector *v12; // r6 cocos2d::CCString *v13; // r0 char *CString; // r0 GJSearchObject *v15; // r0 cocos2d::CCScene *v16; // r0 cocos2d::CCTransitionFade *v17; // r0 _BYTE v18[4]; // [sp+8h] [bp-8h] BYREF if ( a1->m_ownProfile ) { v3 = cocos2d::CCDirector::sharedDirector(); v4 = (GJSearchObject *)GJSearchObject::create(98); v5 = LevelBrowserLayer::scene(v4); v6 = cocos2d::CCTransitionFade::create(0.5, v5); cocos2d::CCDirector::pushScene(v3, v6); } else if ( !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning ) { if ( cocos2d::CCDirector::sharedDirector()->m_pRunningScene->m_eObjType != MenuLayerObjectType ) { if ( cocos2d::CCDirector::sharedDirector()->m_pSceneReference ) { v8 = cocos2d::CCDirector::sharedDirector(); v9 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::popToSceneInStack(v8, v9->m_pSceneReference); } else { v7 = cocos2d::CCDirector::sharedDirector(); v7->m_pSceneReference = cocos2d::CCDirector::sharedDirector()->m_pRunningScene; } } v10 = GameLevelManager::sharedState(); v11 = (const char *)GameLevelManager::userIDForAccountID(v10, a1->m_accountID); v12 = cocos2d::CCDirector::sharedDirector(); v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v11); CString = (char *)cocos2d::CCString::getCString(v13); sub_776584((int)v18, CString); v15 = GJSearchObject::create(UsersLevels); v16 = LevelBrowserLayer::scene(v15); v17 = cocos2d::CCTransitionFade::create(0.5, v16); cocos2d::CCDirector::pushScene(v12, v17); sub_774008(v18); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source