// // GJPathSprite::addShardSprite from 0x58c874 to 0x58c96a (246 bytes) // // 2 xrefs: // > GJPathPage::unlockAnimationStep3 @ 0x58ca22 // > GJPathSprite::updateState @ 0x58cd50 // // 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 GJPathSprite::addShardSprite(GJPathSprite *a1) { char *v2; // r1 cocos2d::CCSprite *v3; // r5 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10 cocos2d::CCSprite *v5; // [sp+0h] [bp-20h] BYREF cocos2d::CCPoint v6; // [sp+4h] [bp-1Ch] BYREF cocos2d::CCPoint v7; // [sp+Ch] [bp-14h] BYREF cocos2d::CCPoint v8; // [sp+14h] [bp-Ch] BYREF v5 = (cocos2d::CCSprite *)&unk_ACDDA8; cocos2d::CCPoint::CCPoint(&v6, 0.0, 1.0); switch ( a1->m_pathNumber ) { case 1: v2 = "fireShardBig_001.png"; goto LABEL_3; case 2: v2 = "iceShardBig_001.png"; goto LABEL_3; case 3: v2 = "poisonShardBig_001.png"; goto LABEL_3; case 4: v2 = "shadowShardBig_001.png"; goto LABEL_3; case 5: v2 = "lavaShardBig_001.png"; goto LABEL_3; case 6: v2 = "shard0201ShardBig_001.png"; goto LABEL_3; case 7: v2 = "shard0202ShardBig_001.png"; goto LABEL_3; case 8: v2 = "shard0203ShardBig_001.png"; goto LABEL_3; case 9: v2 = "shard0204ShardBig_001.png"; goto LABEL_3; case 0xA: v2 = "shard0205ShardBig_001.png"; LABEL_3: sub_7753D4((int)&v5, v2); v3 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v5); a1->addChild_0(a1, v3, 1); ((void (__fastcall *)(cocos2d::CCSprite *, int))v3->setScale)(v3, 1057803469); setPosition = v3->setPosition; cocos2d::CCNode::convertToNodeSpace(&v7, a1, &stru_AC7EC4); cocos2d::CCPoint::operator+(&v8, &v7, &v6); setPosition(v3, &v8); break; default: break; } sub_774008(&v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source