// // GauntletSprite::addNormalSprite from 0x100233f64 to 0x10023402c (200 bytes) // // 2 xrefs: // > GauntletLayer::unlockActiveItem @ 0x100233b40 // > GauntletSprite::toggleLockedSprite @ 0x100233ed8 // // 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::addNormalSprite(GauntletSprite *a1) { void **v2; // x0 cocos2d::CCSprite *v3; // x19 float v4; // s8 __int64 v5; // x0 __n128 v6; // q0 __n128 v7; // q1 int v8; // [xsp+0h] [xbp-40h] BYREF void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v10; // [xsp+1Fh] [xbp-21h] GauntletNode::frameForType(a1->m_gauntletType, __p); if ( v10 >= 0 ) v2 = __p; else v2 = (void **)__p[0]; v3 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v2); ((void (__fastcall *)(GauntletSprite *, cocos2d::CCSprite *))a1->addChild)(a1, v3); v4 = *(float *)((__int64 (__fastcall *)(GauntletSprite *))a1->getContentSize)(a1); v5 = ((__int64 (__fastcall *)(GauntletSprite *))a1->getContentSize)(a1); v6.n128_f32[0] = v4 * 0.5; v7.n128_f32[0] = *(float *)(v5 + 4) * 0.5; sub_100022980(v6, v7, &v8); ((void (__fastcall *)(cocos2d::CCSprite *, int *))v3->setPosition)(v3, &v8); if ( v10 < 0 ) operator delete(__p[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source