// // FriendsProfilePage::setupUsersBrowser from 0x100658490 to 0x10065870d (637 bytes) // // 4 xrefs: // > FriendsProfilePage::init @ 0x1006582a4 // > FriendsProfilePage::getUserListFinished @ 0x10065875f // > FriendsProfilePage::forceReloadList @ 0x1006589e8 // > sub_100658A10 @ 0x100658a62 // // 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 FriendsProfilePage::setupUsersBrowser(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3) { cocos2d::CCDirector *v5; // rax cocos2d::CCTouchDispatcher *v6; // rax BoomListType v7; // ecx CustomListView *v8; // rdi GJCommentListLayer *v9; // rax GJCommentListLayer *m_listLayer; // r12 int v11; // eax cocos2d::CCLabelBMFont *m_totalFriends; // r14 cocos2d::CCString *v13; // rax const char *CString; // rax GameManager *v15; // rax int v16; // eax unsigned int v17; // ebx GameManager *v18; // rax GameManager *v19; // rax GameManager *v20; // rax char v21; // [rsp+0h] [rbp-40h] float v22[2]; // [rsp+4h] [rbp-3Ch] BYREF float v23[2]; // [rsp+Ch] [rbp-34h] BYREF UserListType v24; // [rsp+14h] [rbp-2Ch] if ( a1->m_listLayer ) { v5 = cocos2d::CCDirector::sharedDirector(); v6 = (cocos2d::CCTouchDispatcher *)((__int64 (__fastcall *)(cocos2d::CCDirector *))v5->getTouchDispatcher)(v5); cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1->m_listLayer); ((void (__fastcall *)(GJCommentListLayer *))a1->m_listLayer->removeMeAndCleanup)(a1->m_listLayer); a1->m_listLayer = nullptr; } cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v23); v24 = a3; if ( a2 ) { v7 = User2; if ( !a3 ) v7 = User; v8 = CustomListView::create(a2, nullptr, 196.0, 340.0, 0, v7, 0.0); } else { v8 = nullptr; } v9 = GJCommentListLayer::create(v8, nullptr, (cocos2d::ccColor4B)-12684609, 340.0, 196.0, 0); a1->m_listLayer = v9; ((void (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v9); m_listLayer = a1->m_listLayer; sub_10028CBE0(v22, (float)(v23[0] + -340.0) * 0.5, (float)((float)((float)(v23[1] + -196.0) * 0.5) + -10.0) + 5.0); ((void (__fastcall *)(GJCommentListLayer *, float *))m_listLayer->setPosition)(m_listLayer, v22); if ( a2 == nullptr || v24 != 0 ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_totalFriends->setString)( a1->m_totalFriends, " "); return; } v11 = sub_100720070(a2); m_totalFriends = a1->m_totalFriends; if ( v11 ) { sub_100720070(a2); v13 = (cocos2d::CCString *)sub_1007AB580("Total friends: %i", v21); CString = cocos2d::CCString::getCString(v13); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_totalFriends->setString)(m_totalFriends, CString); if ( !(unsigned int)sub_100720070(a2) ) return; } else { ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))m_totalFriends->setString)( m_totalFriends, " "); if ( !(unsigned int)sub_100720070(a2) ) return; } v15 = GameManager::sharedState(); GameManager::reportAchievementWithID(v15, "geometry.ach.friends01", 100, 0); v16 = sub_100720070(a2); if ( v16 >= 10 ) { v17 = v16; v18 = GameManager::sharedState(); GameManager::reportAchievementWithID(v18, "geometry.ach.friends02", 100, 0); if ( v17 >= 0x19 ) { v19 = GameManager::sharedState(); GameManager::reportAchievementWithID(v19, "geometry.ach.friends03", 100, 0); if ( v17 >= 0x32 ) { v20 = GameManager::sharedState(); GameManager::reportAchievementWithID(v20, "geometry.ach.friends04", 100, 0); } } } }