// // CommunityCreditsPage::goToPage from 0x506ccc to 0x506d70 (164 bytes) // // 2 xrefs: // > CommunityCreditsPage::onSwitchPage @ 0x506d90 // > CommunityCreditsPage::init @ 0x5081be // // 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 CommunityCreditsPage::goToPage(CommunityCreditsPage *a1, int a2) { signed int v4; // r0 intptr_t v5; // r8 intptr_t v6; // r9 cocos2d::CCObject *v7; // r0 cocos2d::CCObject_vtbl *v8; // r2 bool (__fastcall *isEqual)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // r7 bool (__fastcall *v10)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *); // r4 int v11; // r0 int v12; // t1 v4 = cocos2d::CCDictionary::count(a1->m_pageObjects); v5 = v4; if ( a2 >= 0 && v4 > a2 && a2 != a1->m_page ) { v6 = 0; a1->m_page = a2; do { v7 = cocos2d::CCDictionary::objectForKey(a1->m_pageObjects, v6); if ( v7 ) { v8 = v7[1].__vftable; if ( v8->copyWithZone ) { isEqual = v8->isEqual; v10 = (bool (__fastcall *)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *))((char *)isEqual + 4 * ((int)v8->copyWithZone + 0x3FFFFFFF)); while ( (unsigned int)isEqual <= (unsigned int)v10 ) { v12 = *(_DWORD *)isEqual; isEqual = (bool (__fastcall *)(cocos2d::CCObject *__hidden, const cocos2d::CCObject *))((char *)isEqual + 4); v11 = v12; if ( !v12 ) break; (*(void (__fastcall **)(int, bool))(*(_DWORD *)v11 + 164))(v11, v6 == a2); } } } ++v6; } while ( v6 < v5 ); a1->m_prevButton->setVisible(a1->m_prevButton, a2 > 0); a1->m_nextButton->setVisible(a1->m_nextButton, a2 < v5 - 1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source