// // SecretRewardsLayer::onSwitchPage from 0x1403d4cc0 to 0x1403d4d78 (184 bytes) // // 2 xrefs: // > SecretRewardsLayer::init @ 0x1403d4a25 // > @ 0x1406d7cc4 // // 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 SecretRewardsLayer::onSwitchPage(SecretRewardsLayer *a1, cocos2d::CCObject *a2) { BoomScrollLayer **p_m_secondaryScrollLayer; // rsi BoomScrollLayer **p_m_mainScrollLayer; // rdi BoomScrollLayer *v5; // rbx int m_page; // ebx int v7; // r14d int v8; // r14d BoomScrollLayer *v9; // rbx cocos2d::CCArray *m_dynamicObjects; // rcx p_m_secondaryScrollLayer = &a1->m_secondaryScrollLayer; p_m_mainScrollLayer = &a1->m_mainScrollLayer; if ( a1->m_inMainLayer ) v5 = *p_m_mainScrollLayer; else v5 = *p_m_secondaryScrollLayer; m_page = v5->m_page; v7 = 1; if ( a2->getTag(a2) != 1 ) v7 = -1; v8 = m_page + v7; if ( !a1->m_inMainLayer ) p_m_mainScrollLayer = p_m_secondaryScrollLayer; v9 = *p_m_mainScrollLayer; if ( *p_m_mainScrollLayer ) { if ( v9->m_dynamic ) m_dynamicObjects = v9->m_dynamicObjects; else m_dynamicObjects = v9->m_pages; cocos2d::CCArray::count(m_dynamicObjects); BoomScrollLayer::moveToPage(v9, v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source