// // ShardsPage::goToPage from 0x1003a32d0 to 0x1003a3414 (324 bytes) // // 2 xrefs: // > ShardsPage::init @ 0x1003a30f0 // > ShardsPage::onSwitchPage @ 0x1003a32cc // // 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 ShardsPage::goToPage(ShardsPage *a1, int a2) { signed int v4; // w0 intptr_t v5; // x21 __int64 v6; // x23 cocos2d::CCObject *v7; // x0 cocos2d::CCObject_vtbl *v8; // x9 __int64 copyWithZone_low; // x8 void (__cdecl *v10)(cocos2d::CCObject *__hidden); // x24 unsigned __int64 v11; // x25 cocos2d::CCSprite *m_tierSprite; // x20 cocos2d::CCSpriteFrameCache *v13; // x0 const char *v14; // x1 cocos2d::CCSpriteFrame *v15; // x1 if ( (unsigned int)a2 <= 3 && a1->m_page != a2 ) { a1->m_page = a2; v4 = cocos2d::CCDictionary::count(a1->m_pages); if ( v4 >= 1 ) { v5 = 0; v6 = (unsigned int)v4; do { v7 = cocos2d::CCDictionary::objectForKey(a1->m_pages, v5); if ( v7 ) { v8 = v7[1].__vftable; copyWithZone_low = LODWORD(v8->copyWithZone); if ( (_DWORD)copyWithZone_low ) { v10 = v8->~CCObject_0; v11 = (unsigned __int64)v10 + 8 * copyWithZone_low - 8; do { if ( !*(_QWORD *)v10 ) break; (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)v10 + 328LL))(*(_QWORD *)v10, v5 == a2); v10 = (void (__cdecl *)(cocos2d::CCObject *__hidden))((char *)v10 + 8); } while ( (unsigned __int64)v10 <= v11 ); } } ++v5; } while ( v5 != v6 ); } ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_prevButton->setVisible)(a1->m_prevButton, a2 != 0); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_nextButton->setVisible)(a1->m_nextButton, a2 != 3); m_tierSprite = a1->m_tierSprite; v13 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( a2 <= 1 ) v14 = "tier1Icon_001.png"; else v14 = "tier2Icon_001.png"; v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, v14); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_tierSprite->setDisplayFrame)( m_tierSprite, v15); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source