// // PlayerObject::updatePlayerGlow from 0x100229030 to 0x1002291d0 (416 bytes) // // 6 xrefs: // > PlayerObject::doReversePlayer @ 0x10021d32c // > PlayerObject::toggleFlyMode @ 0x100229828 // > PlayerObject::resetPlayerIcon @ 0x100229d08 // > PlayerObject::toggleBirdMode @ 0x100229f50 // > PlayerObject::toggleRobotMode @ 0x10022b348 // > PlayerObject::toggleSpiderMode @ 0x10022b618 // // 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 PlayerObject::updatePlayerGlow(PlayerObject *a1) { bool m_maybeIsVehicleGlowing; // w21 cocos2d::CCSprite *m_iconGlow; // x20 cocos2d::CCSprite *v4; // x20 cocos2d::CCSprite *v5; // x20 __int64 v6; // x0 bool v7; // w22 int v8; // w21 cocos2d::CCSprite *m_vehicleGlow; // x20 __int64 v10; // x1 cocos2d::CCSprite *v11; // x20 __int64 v12; // x0 GJRobotSprite *m_robotSprite; // x0 char v14; // w8 GJRobotSprite *v15; // x0 m_maybeIsVehicleGlowing = a1->m_maybeIsVehicleGlowing; m_iconGlow = a1->m_iconGlow; ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_iconSprite->getScaleX)(a1->m_iconSprite); ((void (__fastcall *)(cocos2d::CCSprite *))m_iconGlow->setScaleX)(m_iconGlow); v4 = a1->m_iconGlow; ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_iconSprite->getScaleY)(a1->m_iconSprite); ((void (__fastcall *)(cocos2d::CCSprite *))v4->setScaleY)(v4); v5 = a1->m_iconGlow; v6 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_iconSprite->getPosition)(a1->m_iconSprite); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v5->setPosition)(v5, v6); if ( m_maybeIsVehicleGlowing || a1->m_hasGlow ) { v7 = !a1->m_isRobot && !a1->m_isSpider; v8 = 1; } else { v8 = 0; v7 = 0; } ((void (__fastcall *)(cocos2d::CCSprite *, bool))a1->m_iconGlow->setVisible)(a1->m_iconGlow, v7); m_vehicleGlow = a1->m_vehicleGlow; if ( v7 ) v10 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_vehicleSprite->isVisible)(a1->m_vehicleSprite); else v10 = 0; ((void (__fastcall *)(cocos2d::CCSprite *, __int64))m_vehicleGlow->setVisible)(m_vehicleGlow, v10); v11 = a1->m_vehicleGlow; v12 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_vehicleSprite->getPosition)(a1->m_vehicleSprite); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v11->setPosition)(v11, v12); m_robotSprite = a1->m_robotSprite; if ( v8 ) { v14 = ((__int64 (__fastcall *)(GJRobotSprite *))m_robotSprite->isVisible)(m_robotSprite); v15 = a1->m_robotSprite; if ( (v14 & 1) != 0 ) GJRobotSprite::showGlow(v15); else GJRobotSprite::hideGlow(v15); if ( ((unsigned int (__fastcall *)(GJSpiderSprite *))a1->m_spiderSprite->isVisible)(a1->m_spiderSprite) ) { GJRobotSprite::showGlow(a1->m_spiderSprite); return; } } else { GJRobotSprite::hideGlow(m_robotSprite); } GJRobotSprite::hideGlow(a1->m_spiderSprite); }
GD Web Decomp Icon

GD Web Decomp

Raw Source