// // PlayerObject::toggleVisibility from 0x342360 to 0x342410 (176 bytes) // // 4 xrefs: // > PlayerObject::spawnFromPlayer @ 0x34788c // > PlayerObject::resetObject @ 0x347b08 // > PlayerObject::loadFromCheckpoint @ 0x350812 // > GJBaseGameLayer::togglePlayerVisibility @ 0x47663e // // 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 PlayerObject::toggleVisibility(PlayerObject *a1, bool a2) { bool v2; // r6 _BOOL4 v4; // r5 PlayerObject_vtbl *v5; // r3 cocos2d::CCMotionStreak *v6; // r0 cocos2d::CCMotionStreak *m_shipStreak; // r0 v2 = !a2; v4 = a2; if ( a1->m_isHidden != !a2 ) { if ( !a2 ) cocos2d::CCNode::stopActionByTag(a1, 11); v5 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_isHidden = v2; v5->setVisible(a1, v4); if ( v4 ) { if ( PlayerObject::isFlying(a1) ) { PlayerObject::resetStreak(a1); PlayerObject::activateStreak(a1); cocos2d::CCParticleSystem::resetSystem(a1->m_trailingParticles); if ( a1->m_isDart ) { PlayerObject::placeStreakPoint(a1); } else if ( a1->m_isShip && !a1->m_isPlatformer ) { m_shipStreak = a1->m_shipStreak; if ( m_shipStreak ) m_shipStreak->setVisible(m_shipStreak, 1); } } else if ( a1->m_alwaysShowStreak ) { PlayerObject::resetStreak(a1); PlayerObject::activateStreak(a1); } } else { PlayerObject::deactivateStreak(a1, 1); v6 = a1->m_shipStreak; if ( v6 ) v6->setVisible(v6, 0); PlayerObject::resetAllParticles(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source