// // SecretRewardsLayer::moveToMainLayer from 0x1002ea844 to 0x1002ea964 (288 bytes) // // 1 xrefs: // > SecretRewardsLayer::onBack @ 0x1002e9a14 // // 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 SecretRewardsLayer::moveToMainLayer(SecretRewardsLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCDirector *v3; // x0 __n128 v4; // q0 __n128 v5; // q1 cocos2d::CCMoveTo *v6; // x0 cocos2d::CCEaseInOut *v7; // x0 __n128 v8; // q0 __n128 v9; // q1 cocos2d::CCMoveTo *v10; // x0 cocos2d::CCEaseInOut *v11; // x20 char v12; // w0 __int64 v13; // x1 __int64 v14; // x2 __int64 v15; // x3 __int64 v16; // x4 __int64 v17; // x5 __int64 v18; // x6 __int64 v19; // x7 cocos2d::CCSequence *v20; // x0 cocos2d::CCPoint v21; // [xsp+10h] [xbp-30h] BYREF float v22; // [xsp+1Ch] [xbp-24h] cocos2d::CCSize WinSize; // 0:kr00_8.8 cocos2d::SEL_CallFunc v24; // 0:x1.16 if ( !a1->m_inMainLayer ) { a1->m_inMainLayer = 1; v3 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v3); v4 = ((__n128 (__fastcall *)(BoomScrollLayer *, __int64, float, float))a1->m_mainScrollLayer->setTouchEnabled)( a1->m_mainScrollLayer, 1, WinSize.width, WinSize.height); v4.n128_u32[0] = 0; v5.n128_u32[0] = 0; sub_100022980(v4, v5, &v21); v6 = cocos2d::CCMoveTo::create(0.4, &v21); v7 = cocos2d::CCEaseInOut::create(v6, 2.0); cocos2d::CCNode::runAction(a1->m_mainLayer, v7); if ( a1->m_secondaryLayer ) { v8 = ((__n128 (__fastcall *)(BoomScrollLayer *, _QWORD))a1->m_secondaryScrollLayer->setTouchEnabled)( a1->m_secondaryScrollLayer, 0); a1->m_secondaryScrollLayer = nullptr; a1->m_chestCounter = nullptr; v9.n128_f32[0] = v22 + 50.0; v8.n128_u32[0] = 0; sub_100022980(v8, v9, &v21); v10 = cocos2d::CCMoveTo::create(0.4, &v21); v11 = cocos2d::CCEaseInOut::create(v10, 2.0); v24.ptr = (void (*)(void))520; v24.adj = 1; v12 = (unsigned __int8)cocos2d::CCCallFunc::create(a1->m_secondaryLayer, v24); v20 = sub_10018A494(v11, v13, v14, v15, v16, v17, v18, v19, v12); cocos2d::CCNode::runAction(a1->m_secondaryLayer, v20); a1->m_secondaryLayer = nullptr; } SecretRewardsLayer::updateBackButton(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source