// // SecretRewardsLayer::onChestType from 0x1403d5050 to 0x1403d5199 (329 bytes) // // 2 xrefs: // > SecretRewardsLayer::init @ 0x1403d337d // > @ 0x1406d7d0c // // 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::onChestType(SecretRewardsLayer *a1, cocos2d::CCObject *a2) { float v2; // xmm3_4 int v5; // eax __int64 v6; // rcx __int32 v7; // ebx cocos2d::CCDirector *v8; // rax float v9; // xmm0_4 const struct cocos2d::CCPoint *v10; // rax struct cocos2d::CCMoveTo *v11; // rax struct cocos2d::CCEaseBounceOut *v12; // rax cocos2d::ccColor3B *v13; // r8 cocos2d::CCLayer_vtbl *v14; // rbx __int64 v15; // rax float v16; // xmm0_4 const struct cocos2d::CCPoint *v17; // rax struct cocos2d::CCMoveTo *v18; // rax struct cocos2d::CCEaseBounceOut *v19; // rax cocos2d::ccColor3B *v20; // r8 float v21; // [rsp+20h] [rbp-8h] float v22; // [rsp+20h] [rbp-8h] v5 = a2->getTag(a2); if ( v5 < 6 ) { v7 = v5 + 3; if ( a1->m_inMainLayer ) { a1->m_inMainLayer = 0; a1->m_rewardType = v7; v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v8); v9 = ((float (__fastcall *)(BoomScrollLayer *, _QWORD))a1->m_mainScrollLayer->setTouchEnabled)( a1->m_mainScrollLayer, 0); cocos2d::CCPoint::CCPoint(v9, 0.0); v11 = cocos2d::CCMoveTo::create(0.5, v10); v12 = cocos2d::CCEaseBounceOut::create(v11); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_mainLayer, (cocos2d::CCPoint)v12, v13, v2, v21); SecretRewardsLayer::createSecondaryLayer(a1, v7); v14 = a1->m_secondaryLayer->__vftable; cocos2d::CCPoint::CCPoint(0.5, 0.0); v16 = ((float (__fastcall *)(cocos2d::CCLayer *, __int64))v14->setPosition_0)(a1->m_secondaryLayer, v15); cocos2d::CCPoint::CCPoint(v16, 0.0); v18 = cocos2d::CCMoveTo::create(0.5, v17); v19 = cocos2d::CCEaseBounceOut::create(v18); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_secondaryLayer, (cocos2d::CCPoint)v19, v20, v2, v22); SecretRewardsLayer::updateBackButton(a1); } } else { SecretRewardsLayer::onSpecialItem(a1, a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source