// // InfoLayer::setupCommentsBrowser from 0x42fb44 to 0x42fcea (422 bytes) // // 3 xrefs: // > InfoLayer::loadCommentsFinished @ 0x42fd22 // > InfoLayer::loadPage @ 0x42fe5c // > InfoLayer::init @ 0x431446 // // 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 InfoLayer::setupCommentsBrowser(InfoLayer *a1, cocos2d::CCArray *a2) { cocos2d::CCDirector *v4; // r0 cocos2d::CCTouchDispatcher *v5; // r0 cocos2d::CCDirector *v6; // r0 GameManager *v7; // r0 GJUserScore *m_score; // r3 float v9; // s16 _BOOL4 v10; // r7 GJAccountManager *v11; // r0 int v12; // r2 bool v13; // r2 cocos2d::ccArray *data; // r1 unsigned int num; // r3 cocos2d::CCObject **arr; // r1 cocos2d::CCObject **v17; // r3 int v18; // r0 int v19; // t1 GameManager *v20; // r0 CustomListView *v21; // r0 GJCommentListLayer *v22; // r0 bool v23; // zf GJCommentListLayer *m_list; // r5 float v25; // s15 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 float v27; // s16 cocos2d::CCSize v28; // [sp+14h] [bp-18h] BYREF cocos2d::CCPoint v29; // [sp+1Ch] [bp-10h] 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; } if ( a1->m_levelList ) { v11 = GJAccountManager::sharedState(); v12 = v11->m_accountID - v11->m_unkInt1; v13 = v12 == a1->m_levelList->m_accountID && v12 > 0; if ( a2 ) { data = a2->data; num = data->num; if ( data->num ) { arr = data->arr; v17 = &arr[num] + 0x3FFFFFFF; while ( arr <= v17 ) { v19 = (int)*arr++; v18 = v19; if ( !v19 ) break; *(_BYTE *)(v18 + 317) = v13; } } } } v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v28, v6); v7 = GameManager::sharedState(); if ( GameManager::getGameVariable(v7, "0089") ) { v9 = 234.0; v10 = 1; } else { m_score = a1->m_score; v9 = 140.0; v10 = m_score != nullptr; if ( m_score ) v9 = 234.0; } if ( a2 ) { v20 = GameManager::sharedState(); GameManager::getGameVariable(v20, "0088"); v21 = CustomListView::create(a2, (BoomListType)0, v9, 340.0); } else { v21 = nullptr; } v22 = GJCommentListLayer::create(v21, "Comments", (cocos2d::ccColor4B)-12684609, 340.0, v9, 0); a1->m_list = v22; a1->m_mainLayer->addChild(a1->m_mainLayer, v22); v23 = !v10; m_list = a1->m_list; v25 = -4.0; setPosition = m_list->setPosition; v27 = v28.height - v9; if ( v23 ) v25 = -53.0; cocos2d::CCPoint::CCPoint(&v29, (float)(v28.width - 340.0) * 0.5, v25 + (float)(v27 * 0.5)); setPosition(m_list, &v29); }
GD Web Decomp Icon

GD Web Decomp

Raw Source