// // InfoLayer::setupPageInfo from 0x42ffa4 to 0x430108 (356 bytes) // // 1 xrefs: // > `non-virtual thunk to'InfoLayer::setupPageInfo @ 0x430118 // // 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::setupPageInfo(InfoLayer *a1, char **a2, char *a3) { cocos2d::CCArray *v5; // r0 cocos2d::CCArray *v6; // r6 int v7; // r8 int v8; // r7 const std::string *v9; // r1 cocos2d::CCObject *v10; // r0 cocos2d::CCString *v11; // r0 cocos2d::CCString *v12; // r0 cocos2d::CCString *v13; // r0 int v14; // r0 int m_pageStartIdx; // r1 int v16; // [sp+0h] [bp-24h] int v17; // [sp+10h] [bp-14h] BYREF char *v18; // [sp+14h] [bp-10h] BYREF char v19; // [sp+18h] [bp-Ch] BYREF if ( InfoLayer::isCorrect(a1, a3) ) { v5 = (cocos2d::CCArray *)sub_776584((int)&v17, *a2); v6 = (cocos2d::CCArray *)cocos2d::CCArray::create(v5); v7 = sub_774A78((int)&v17, ":"); v8 = 0; v16 = *(_DWORD *)(v17 - 12); while ( 1 ) { sub_776158(&v18, &v17, v8, v7 - v8); if ( *((_DWORD *)v18 - 3) || v8 != v16 ) { sub_776584((int)&v19, v18); v10 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v19, v9); cocos2d::CCArray::addObject(v6, v10); sub_774008(&v19); } if ( v7 == -1 ) break; v8 = v7 + 1; v7 = sub_774A78((int)&v17, ":"); sub_774008(&v18); } sub_774008(&v18); sub_774008(&v17); if ( cocos2d::CCArray::count(v6) > 2u ) { v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, 0); a1->m_itemCount = cocos2d::CCString::intValue(v11); v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, 1u); a1->m_pageStartIdx = cocos2d::CCString::intValue(v12); v13 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v6, 2u); v14 = cocos2d::CCString::intValue(v13); m_pageStartIdx = a1->m_pageStartIdx; a1->m_pageEndIdx = v14; a1->m_leftArrow->setVisible(a1->m_leftArrow, m_pageStartIdx != 0); a1->m_rightArrow->setVisible(a1->m_rightArrow, a1->m_pageEndIdx + a1->m_pageStartIdx < a1->m_itemCount); InfoLayer::updateLevelsLabel(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source