// // InfoLayer::setupCommentsBrowser from 0x1007b1650 to 0x1007b185a (522 bytes) // // 4 xrefs: // > InfoLayer::init @ 0x1007aff72 // > InfoLayer::loadPage @ 0x1007b143f // > InfoLayer::loadCommentsFinished @ 0x1007b254f // > sub_1007B2590 @ 0x1007b25bc // // 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 InfoLayer::setupCommentsBrowser(InfoLayer *a1, cocos2d::CCArray *a2) { cocos2d::CCDirector *v3; // rax cocos2d::CCTouchDispatcher *v4; // rax GJAccountManager *v5; // rax int m_accountID; // edx bool v7; // al bool v8; // cl cocos2d::ccArray *data; // rdx bool v10; // al cocos2d::CCObject **arr; // rcx unsigned __int64 v12; // rdx GameManager *v13; // rax float v14; // xmm1_4 GameManager *v15; // rax bool GameVariable; // al CustomListView *v17; // rax BoomListView *v18; // rdi GJCommentListLayer *v19; // rax GJCommentListLayer *m_list; // rbx float v21; // [rsp+8h] [rbp-28h] BYREF float v22[2]; // [rsp+10h] [rbp-20h] BYREF float v23; // [rsp+18h] [rbp-18h] float v24; // [rsp+1Ch] [rbp-14h] 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 *)(GJCommentListLayer *))a1->m_list->removeMeAndCleanup)(a1->m_list); a1->m_list = nullptr; } if ( a1->m_levelList ) { v5 = GJAccountManager::sharedState(); m_accountID = a1->m_levelList->m_accountID; v7 = v5->m_accountID - v5->m_unkInt1 == m_accountID; v8 = m_accountID > 0; if ( a2 ) { data = a2->data; if ( data->num ) { v10 = v8 && v7; arr = data->arr; v12 = (unsigned __int64)&arr[data->num - 1]; do { if ( !*arr ) break; BYTE1((*arr++)[7].m_unknown2) = v10; } while ( (unsigned __int64)arr <= v12 ); } } } cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v22); v13 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v13, "0089") && !a1->m_score ) { v14 = 140.0; v23 = -53.0; v24 = 140.0; if ( a2 ) goto LABEL_12; LABEL_14: v18 = nullptr; goto LABEL_15; } v14 = 234.0; v23 = -4.0; v24 = 234.0; if ( !a2 ) goto LABEL_14; LABEL_12: v15 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v15, "0088"); v17 = CustomListView::create(a2, nullptr, v24, 340.0, 0, (BoomListType)(GameVariable + 7), 0.0); v14 = v24; v18 = v17; LABEL_15: v19 = GJCommentListLayer::create(v18, "Comments", (cocos2d::ccColor4B)-12684609, 340.0, v14, 0); a1->m_list = v19; ((void (__fastcall *)(cocos2d::CCLayer *, GJCommentListLayer *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v19); m_list = a1->m_list; sub_10028CBE0(&v21, (float)(v22[0] + -340.0) * 0.5, v23 + (float)((float)(v22[1] - v24) * 0.5)); ((void (__fastcall *)(GJCommentListLayer *, float *))m_list->setPosition)(m_list, &v21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source