// // GauntletSprite::addLockedSprite from 0x10023404c to 0x100234200 (436 bytes) // // 1 xrefs: // > GauntletSprite::toggleLockedSprite @ 0x100233ecc // // 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 __fastcall GauntletSprite::addLockedSprite(GauntletSprite *a1) { char *v2; // x1 CCSpriteGrayscale *v3; // x19 GauntletSprite *v4; // x0 float v5; // s0 float v6; // s8 __int64 v7; // x0 __n128 v8; // q0 __n128 v9; // q1 cocos2d::CCSprite *v10; // x20 float v11; // s8 __int64 v12; // x0 __n128 v13; // q0 __n128 v14; // q1 void *__p[2]; // [xsp+0h] [xbp-50h] BYREF char v16; // [xsp+17h] [xbp-39h] void *v17[2]; // [xsp+18h] [xbp-38h] BYREF char v18; // [xsp+2Fh] [xbp-21h] GauntletNode::frameForType(a1->m_gauntletType, v17); if ( v18 >= 0 ) v2 = (char *)v17; else v2 = (char *)v17[0]; sub_100009900(__p, v2); v3 = CCSpriteGrayscale::createWithSpriteFrameName((__int64)__p); if ( v16 < 0 ) operator delete(__p[0]); BYTE2(__p[0]) = -1; LOWORD(__p[0]) = -256; ((void (__fastcall *)(CCSpriteGrayscale *, void **))v3->setColor)(v3, __p); v4 = (GauntletSprite *)((__int64 (__fastcall *)(GauntletSprite *, CCSpriteGrayscale *))a1->addChild)(a1, v3); v5 = GauntletSprite::luminanceForType(v4, a1->m_gauntletType); CCSpriteWithHue::setLuminance(v3, v5); v6 = *(float *)((__int64 (__fastcall *)(GauntletSprite *))a1->getContentSize)(a1); v7 = ((__int64 (__fastcall *)(GauntletSprite *))a1->getContentSize)(a1); v8.n128_f32[0] = v6 * 0.5; v9.n128_f32[0] = *(float *)(v7 + 4) * 0.5; sub_100022980(v8, v9, __p); ((void (__fastcall *)(CCSpriteGrayscale *, void **))v3->setPosition)(v3, __p); BYTE2(__p[0]) = -31; LOWORD(__p[0]) = -7711; ((void (__fastcall *)(CCSpriteGrayscale *, void **))v3->setColor)(v3, __p); v10 = cocos2d::CCSprite::createWithSpriteFrameName("gauntletLock_001.png"); ((void (__fastcall *)(CCSpriteGrayscale *, cocos2d::CCSprite *, __int64))v3->addChild_0)(v3, v10, 1); v11 = *(float *)((__int64 (__fastcall *)(CCSpriteGrayscale *))v3->getContentSize)(v3); v12 = ((__int64 (__fastcall *)(CCSpriteGrayscale *))v3->getContentSize)(v3); v13.n128_f32[0] = v11 * 0.5; v14.n128_f32[0] = *(float *)(v12 + 4) * 0.5; sub_100022980(v13, v14, __p); ((void (__fastcall *)(cocos2d::CCSprite *, void **))v10->setPosition)(v10, __p); if ( v18 < 0 ) operator delete(v17[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source