// // LeaderboardsLayer::setupLevelBrowser from 0x100513780 to 0x1005138bc (316 bytes) // // 3 xrefs: // > LeaderboardsLayer::selectLeaderboard @ 0x1005135e8 // > LeaderboardsLayer::selectLeaderboard @ 0x10051361e // > LeaderboardsLayer::loadLeaderboardFinished @ 0x100513dde // // 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 __fastcall LeaderboardsLayer::setupLevelBrowser(LeaderboardsLayer *a1, cocos2d::CCArray *a2) { cocos2d::CCDirector *v3; // rax cocos2d::CCTouchDispatcher *v4; // rax CustomListView *v5; // rdi GJListLayer *v6; // rax GJListLayer *m_list; // r14 float v8; // [rsp+8h] [rbp-28h] BYREF float v9[8]; // [rsp+10h] [rbp-20h] BYREF if ( a1->m_list ) { v3 = cocos2d::CCDirector::sharedDirector(); v4 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v3->getTouchDispatcher)(v3); cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_list); ((void (__fastcall *)(GJListLayer *))a1->m_list->removeMeAndCleanup)(a1->m_list); a1->m_list = nullptr; } cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9); if ( a2 ) v5 = CustomListView::create(a2, nullptr, 220.0, 356.0, 0, Score, 0.0); else v5 = nullptr; v6 = GJListLayer::create(v5, nullptr, (cocos2d::ccColor4B)-12684609, 356.0, 220.0, 0); a1->m_list = v6; ((void (__fastcall *)(LeaderboardsLayer *, GJListLayer *))a1->addChild)(a1, v6); m_list = a1->m_list; sub_10028CBE0(&v8, (float)(v9[0] + -356.0) * 0.5, (float)((float)((float)(v9[1] + -220.0) * 0.5) + -10.0) + 5.0); ((void (__fastcall *)(GJListLayer *, float *))m_list->setPosition)(m_list, &v8); LeaderboardsLayer::refreshTabs(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source