// // CurrencySprite::initWithSprite from 0x1007aa6a0 to 0x1007aa84a (426 bytes) // // 1 xrefs: // > CurrencySprite::createWithSprite @ 0x1007a8aef // // 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 // bool __fastcall CurrencySprite::initWithSprite(CurrencySprite *a1, cocos2d::CCSprite *a2) { bool result; // al bool v4; // r12 cocos2d::CCSprite *v5; // rax cocos2d::CCRotateBy *v6; // rax cocos2d::CCRepeatForever *v7; // rax cocos2d::CCSprite *m_burstSprite; // rdi cocos2d::CCSprite *v9; // r15 cocos2d::CCRotateBy *v10; // rax cocos2d::CCRepeatForever *v11; // rax char v12; // [rsp+Ch] [rbp-34h] BYREF float v13; // [rsp+14h] [rbp-2Ch] __int16 v14; // [rsp+18h] [rbp-28h] BYREF char v15; // [rsp+1Ah] [rbp-26h] __int16 v16; // [rsp+1Ch] [rbp-24h] BYREF char v17; // [rsp+1Eh] [rbp-22h] double v18; // 0:xmm0_8.8 result = cocos2d::CCSprite::init(a1); if ( result ) { v4 = result; ((void (__fastcall *)(CurrencySprite *, cocos2d::CCSprite *))a1->addChild)(a1, a2); ((void (__fastcall *)(cocos2d::CCSprite *, void *))a2->setPosition)(a2, &unk_1009A3C70); v5 = cocos2d::CCSprite::createWithSpriteFrameName("shineBurst_001.png"); a1->m_burstSprite = v5; cocos2d::CCObject::retain(v5); v13 = flt_100817B30[(float)((float)rand() * 4.6566129e-10) > 0.5]; v6 = cocos2d::CCRotateBy::create_1(1.0, 90.0 * v13); v7 = cocos2d::CCRepeatForever::create(v6); cocos2d::CCNode::runAction(a1->m_burstSprite, v7); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_burstSprite->setScale)(a1->m_burstSprite, 2.0); m_burstSprite = a1->m_burstSprite; v15 = -1; v14 = -1; ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))m_burstSprite->setColor)(m_burstSprite, &v14); v9 = cocos2d::CCSprite::createWithSpriteFrameName("shineBurst_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *))a1->m_burstSprite->addChild)(a1->m_burstSprite, v9); *(cocos2d::CCPoint *)&v18 = cocos2d::CCNode::convertToNodeSpace( (cocos2d::CCNode *)&v12, (const cocos2d::CCPoint *)a1->m_burstSprite); ((void (__fastcall *)(cocos2d::CCSprite *, char *, double))v9->setPosition)(v9, &v12, v18); ((void (__fastcall *)(cocos2d::CCSprite *, float))v9->setScale)(v9, 0.80000001); v17 = -1; v16 = -1; ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v9->setColor)(v9, &v16); v10 = cocos2d::CCRotateBy::create_1(1.0, v13 * -180.0); v11 = cocos2d::CCRepeatForever::create(v10); cocos2d::CCNode::runAction(v9, v11); return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source