// // GJDifficultySprite::updateFeatureState from 0x4b3d50 to 0x4b3ee6 (406 bytes) // // 3 xrefs: // > GJRateLevelLayer::onFeature @ 0x45311c // > RateStarsLayer::onFeature @ 0x455722 // > GJDifficultySprite::updateFeatureStateFromLevel @ 0x4b3f3a // // 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 GJDifficultySprite::updateFeatureState(GJDifficultySprite *a1, GJFeatureState a2) { GJDifficultySprite_vtbl *v3; // r3 GJFeatureState m_featureState; // r3 char *v5; // r1 cocos2d::CCSprite *v6; // r5 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 float width; // s17 const cocos2d::CCSize *v9; // r0 cocos2d::CCParticleSystemQuad *v10; // r5 void (__fastcall *v11)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 float v12; // s17 const cocos2d::CCSize *v13; // r0 int v14; // r4 cocos2d::CCSprite *v15; // [sp+4h] [bp-14h] BYREF void *v16; // [sp+8h] [bp-10h] BYREF cocos2d::CCPoint v17; // [sp+Ch] [bp-Ch] BYREF if ( a2 == a1->m_featureState ) return; v3 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_featureState = a2; ((void (*)(void))v3->removeAllChildren)(); if ( !a1->m_featureState ) return; sub_776584((int)&v15, "GJ_featuredCoin_001.png"); m_featureState = a1->m_featureState; switch ( m_featureState ) { case Mythic: v5 = "GJ_epicCoin3_001.png"; LABEL_5: sub_7753D4((int)&v15, v5); break; case Legendary: v5 = "GJ_epicCoin2_001.png"; goto LABEL_5; case Epic: v5 = "GJ_epicCoin_001.png"; goto LABEL_5; } v6 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v15); a1->addChild_0(a1, v6, -2); setPosition = v6->setPosition; width = a1->getContentSize(a1)->width; v9 = a1->getContentSize(a1); cocos2d::CCPoint::CCPoint(&v17, width * 0.5, v9->height * 0.5); setPosition(v6, &v17); if ( a1->m_featureState == Mythic ) { sub_776584( (int)&v16, "30a-1a1.3a0.2a20a90a0a10a5a20a20a0a0a8a0a0a0a4a1a0a0a0a0a1a0a1a0a1a0a1a1a0a0a0a0a0.784314a0a1a0a1a0a0.27a0a0.27a0a" "0a0a0a0a0a0a0a2a1a0a0a0a0a0a0a0.25a0a0a0a0a0a0a0a0a0a0a0"); v10 = GameToolbox::particleFromString(&v16, nullptr, 0); a1->addChild_0(a1, v10, -1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int))v10->setScale)(v10, 1063675494); cocos2d::CCParticleSystem::resetSystem(v10); v11 = v10->setPosition; v12 = a1->getContentSize(a1)->width; v13 = a1->getContentSize(a1); cocos2d::CCPoint::CCPoint(&v17, v12 * 0.5, v13->height * 0.5); v11(v10, &v17); v14 = 5; do { ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, int))v10->update)(v10, 1041865114); --v14; } while ( v14 ); sub_774008(&v16); } sub_774008(&v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source