// // GauntletSprite::addLockedSprite from 0x4da1c0 to 0x4da328 (360 bytes) // // 1 xrefs: // > GauntletSprite::toggleLockedSprite @ 0x4da34e // // 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 GauntletSprite::addLockedSprite(GauntletSprite *a1) { CCSpriteGrayscale *v2; // r4 void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r2 float v4; // r0 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 float width; // s17 const cocos2d::CCSize *v7; // r0 void (__fastcall *v8)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r9 int v9; // r0 cocos2d::CCSprite *v10; // r6 void (__fastcall *v11)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 float v12; // s17 int v13; // r0 char *v14; // [sp+8h] [bp-14h] BYREF cocos2d::CCPoint v15; // [sp+Ch] [bp-10h] BYREF GauntletNode::frameForType((int)&v14, a1->m_gauntletType); sub_776584((int)&v15, v14); v2 = CCSpriteGrayscale::createWithSpriteFrameName((const char **)&v15); sub_774008(&v15); setColor = v2->setColor; LOWORD(v15.x) = -256; BYTE2(v15.x) = -1; setColor(v2, (const cocos2d::ccColor3B *)&v15); a1->addChild(a1, v2); v4 = GauntletSprite::luminanceForType(a1, a1->m_gauntletType); CCSpriteWithHue::setLuminance(v2, v4); setPosition = v2->setPosition; width = a1->getContentSize(a1)->width; v7 = a1->getContentSize(a1); cocos2d::CCPoint::CCPoint(&v15, width * 0.5, v7->height * 0.5); setPosition(v2, &v15); v8 = v2->setColor; *(cocos2d::ccColor3B *)&v9 = GauntletSprite::colorForType(a1, a1->m_gauntletType); LOWORD(v15.x) = v9; BYTE2(v15.x) = BYTE2(v9); v8(v2, (const cocos2d::ccColor3B *)&v15); v10 = cocos2d::CCSprite::createWithSpriteFrameName("gauntletLock_001.png"); v2->addChild_0(v2, v10, 1); v11 = v10->setPosition; v12 = v2->getContentSize(v2)->width; v13 = (int)v2->getContentSize(v2); cocos2d::CCPoint::CCPoint(&v15, v12 * 0.5, *(float *)(v13 + 4) * 0.5); v11(v10, &v15); sub_774008(&v14); }
GD Web Decomp Icon

GD Web Decomp

Raw Source