// // SecretRewardsLayer::moveToSecondaryLayer from 0x1002ea628 to 0x1002ea724 (252 bytes) // // 1 xrefs: // > SecretRewardsLayer::onChestType @ 0x1002e9a68 // // 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::moveToSecondaryLayer(SecretRewardsLayer *a1, int a2) { __int64 v2; // x29 __int64 v3; // x30 cocos2d::CCDirector *v6; // x0 __n128 v7; // q0 __n128 v8; // q1 cocos2d::CCMoveTo *v9; // x0 cocos2d::CCEaseBounceOut *v10; // x0 cocos2d::CCLayer *m_secondaryLayer; // x20 __n128 v12; // q1 __n128 v13; // q0 __n128 v14; // q0 __n128 v15; // q1 cocos2d::CCMoveTo *v16; // x0 cocos2d::CCEaseBounceOut *v17; // x0 cocos2d::CCPoint v18; // [xsp+0h] [xbp-30h] BYREF float v19; // [xsp+Ch] [xbp-24h] __int64 v20; // [xsp+20h] [xbp-10h] __int64 v21; // [xsp+28h] [xbp-8h] cocos2d::CCSize WinSize; // 0:kr00_8.8 if ( a1->m_inMainLayer ) { v20 = v2; v21 = v3; a1->m_inMainLayer = 0; a1->m_rewardType = a2; v6 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v6); v7 = ((__n128 (__fastcall *)(BoomScrollLayer *, _QWORD, float, float))a1->m_mainScrollLayer->setTouchEnabled)( a1->m_mainScrollLayer, 0, WinSize.width, WinSize.height); v8.n128_f32[0] = -100.0 - v19; v7.n128_u32[0] = 0; sub_100022980(v7, v8, &v18); v9 = cocos2d::CCMoveTo::create(0.5, &v18); v10 = cocos2d::CCEaseBounceOut::create(v9); cocos2d::CCNode::runAction(a1->m_mainLayer, v10); SecretRewardsLayer::createSecondaryLayer(a1, a2); m_secondaryLayer = a1->m_secondaryLayer; v12.n128_f32[0] = v19; v13.n128_u32[0] = 0; sub_100022980(v13, v12, &v18); v14 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCPoint *))m_secondaryLayer->setPosition)( m_secondaryLayer, &v18); v14.n128_u32[0] = 0; v15.n128_u32[0] = 0; sub_100022980(v14, v15, &v18); v16 = cocos2d::CCMoveTo::create(0.5, &v18); v17 = cocos2d::CCEaseBounceOut::create(v16); cocos2d::CCNode::runAction(a1->m_secondaryLayer, v17); SecretRewardsLayer::updateBackButton(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source