// // LeaderboardsLayer::setupLevelBrowser from 0x81e490 to 0x81e608 (376 bytes) // // 4 xrefs: // > LeaderboardsLayer::selectLeaderboard @ 0x81ea08 // > LeaderboardsLayer::selectLeaderboard @ 0x81ea58 // > LeaderboardsLayer::loadLeaderboardFinished @ 0x81fb40 // > @ 0x316c8 // // 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::setupLevelBrowser(LeaderboardsLayer *a1, cocos2d::CCArray *a2) { cocos2d::CCDirector *v4; // x0 cocos2d::CCTouchDispatcher *v5; // x0 cocos2d::CCDirector *v6; // x0 CustomListView *v7; // x0 GJListLayer *v8; // x0 LeaderboardsLayer_vtbl *v9; // x2 GJListLayer *m_list; // x22 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21 float v12; // [xsp+58h] [xbp+58h] float v13; // [xsp+5Ch] [xbp+5Ch] cocos2d::CCPoint v14; // [xsp+60h] [xbp+60h] BYREF if ( a1->m_list ) { v4 = cocos2d::CCDirector::sharedDirector(); v5 = v4->getTouchDispatcher(v4); cocos2d::CCTouchDispatcher::unregisterForcePrio(v5, a1->m_list); a1->m_list->removeMeAndCleanup(a1->m_list); a1->m_list = nullptr; } v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6); if ( a2 ) v7 = CustomListView::create(a2, (BoomListType)0, 220.0, 356.0); else v7 = nullptr; v8 = GJListLayer::create(v7, nullptr, (cocos2d::ccColor4B)-12684609, 356.0, 220.0, 0); v9 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_list = v8; ((void (__fastcall *)(LeaderboardsLayer *))v9->addChild)(a1); m_list = a1->m_list; setPosition = m_list->setPosition; cocos2d::CCPoint::CCPoint( &v14, (float)(v12 - 356.0) * 0.5, (float)((float)((float)(v13 - 220.0) * 0.5) + -10.0) + 5.0); setPosition(m_list, &v14); LeaderboardsLayer::refreshTabs(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source