// // SecretRewardsLayer::updateBackButton from 0xa61130 to 0xa61258 (296 bytes) // // 3 xrefs: // > SecretRewardsLayer::moveToMainLayer @ 0xa613b0 // > SecretRewardsLayer::moveToSecondaryLayer @ 0xa6b03c // > @ 0x977b8 // // 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::updateBackButton(SecretRewardsLayer *a1) { cocos2d::CCSprite *m_backSprite; // x20 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x21 cocos2d::CCSpriteFrameCache *v4; // x0 const char *v5; // x1 cocos2d::CCSpriteFrame *v6; // x0 void (__fastcall *setScale)(float); // x1 cocos2d::CCScaleTo *v8; // x0 float v9; // s0 cocos2d::CCActionInterval *v10; // x0 cocos2d::CCEaseBackOut *v11; // x20 cocos2d::CCScaleTo *v12; // x0 float v13; // s0 cocos2d::CCActionInterval *v14; // x0 cocos2d::CCEaseInOut *v15; // x0 cocos2d::CCAction *v16; // x0 cocos2d::CCNode::stopAllActions(a1->m_backSprite); m_backSprite = a1->m_backSprite; setDisplayFrame = m_backSprite->setDisplayFrame; v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( a1->m_inMainLayer ) v5 = "GJ_arrow_03_001.png"; else v5 = "GJ_closeBtn_001.png"; v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5); setDisplayFrame(m_backSprite, v6); setScale = (void (__fastcall *)(float))a1->m_backSprite->setScale; if ( !a1->m_inMainLayer ) { setScale(0.8); if ( a1->m_inMainLayer ) return; LABEL_8: v8 = (cocos2d::CCScaleTo *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->getScale)(a1->m_backSprite); v10 = (cocos2d::CCActionInterval *)cocos2d::CCScaleTo::create(v8, 0.2, v9 + 0.1); v11 = cocos2d::CCEaseBackOut::create(v10); v12 = (cocos2d::CCScaleTo *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->getScale)(a1->m_backSprite); v14 = (cocos2d::CCActionInterval *)cocos2d::CCScaleTo::create(v12, 0.2, v13); v15 = cocos2d::CCEaseInOut::create(v14, 2.0); v16 = (cocos2d::CCAction *)cocos2d::CCSequence::create((cocos2d::CCSequence *)v11, v15, 0); cocos2d::CCNode::runAction(a1->m_backSprite, v16); return; } setScale(1.0); if ( !a1->m_inMainLayer ) goto LABEL_8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source