// // SecretRewardsLayer::updateBackButton from 0x1403d51a0 to 0x1403d52d2 (306 bytes) // // 3 xrefs: // > SecretRewardsLayer::onChestType @ 0x1403d5189 // > SecretRewardsLayer::onBack @ 0x1403d7d62 // > @ 0x1406d7d18 // // 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) { float v1; // xmm3_4 __int64 v3; // rcx const char *v4; // rbx cocos2d::CCSprite_vtbl *v5; // rdi cocos2d::CCSpriteFrameCache *v6; // rax struct cocos2d::CCSpriteFrame *v7; // rax double v8; // xmm0_8 struct cocos2d::CCScaleTo *v9; // rax struct cocos2d::CCEaseBackOut *v10; // rbx double v11; // xmm0_8 struct cocos2d::CCScaleTo *v12; // rax struct cocos2d::CCEaseInOut *v13; // rax struct cocos2d::CCSequence *v14; // rax cocos2d::ccColor3B *v15; // r8 float v16; // [rsp+20h] [rbp-8h] cocos2d::CCNode::stopAllActions(a1->m_backSprite); v4 = "GJ_closeBtn_001.png"; v5 = a1->m_backSprite->__vftable; if ( a1->m_inMainLayer ) v4 = "GJ_arrow_03_001.png"; v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3); v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v4); v5->setDisplayFrame(a1->m_backSprite, v7); ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->setScale_0)(a1->m_backSprite); if ( !a1->m_inMainLayer ) { v8 = ((double (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->getScale)(a1->m_backSprite); v9 = cocos2d::CCScaleTo::create(0.2, *(float *)&v8 + 0.1); v10 = cocos2d::CCEaseBackOut::create(v9); v11 = ((double (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->getScale)(a1->m_backSprite); v12 = cocos2d::CCScaleTo::create(0.2, *(float *)&v11); v13 = cocos2d::CCEaseInOut::create(v12, 2.0); v14 = cocos2d::CCSequence::create(v10, v13, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_backSprite, (cocos2d::CCPoint)v14, v15, v1, v16); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source