// // GameObject::setVisible from 0x10025bc8c to 0x10025bdd8 (332 bytes) // // 47 xrefs: // > PlayerObject::setVisible @ 0x10022e7b0 // > EndPortalObject::setVisible @ 0x1003fec94 // > @ 0x1007cf9d0 // > @ 0x1007d01b8 // > @ 0x1007d09c8 // > @ 0x1007f5238 // > @ 0x1007f5a70 // > @ 0x1007f6268 // > @ 0x1007f6a60 // > @ 0x1007f7258 // > @ 0x1007f7a50 // > @ 0x1007f8248 // > @ 0x1007f8a40 // > @ 0x1007f9228 // > @ 0x1007f9a38 // > @ 0x1007fa2a0 // > @ 0x1007faab0 // > @ 0x1007fb2c0 // > @ 0x1007fbad0 // > @ 0x1007fc2e0 // > @ 0x1007fcaf0 // > @ 0x1007fd300 // > @ 0x1007fdb10 // > @ 0x1007fe320 // > @ 0x1007feb30 // > @ 0x1007ff358 // > @ 0x1007ffbb0 // > @ 0x1008003d8 // > @ 0x100800c00 // > @ 0x100801428 // > @ 0x100801c50 // > @ 0x100802460 // > @ 0x100802c70 // > @ 0x100803480 // > @ 0x100803c90 // > @ 0x1008044a0 // > @ 0x100804cb0 // > @ 0x1008054c0 // > @ 0x100805cd0 // > @ 0x1008064e0 // > @ 0x100806cf0 // > @ 0x100807500 // > @ 0x100807d10 // > @ 0x100808520 // > @ 0x100808d30 // > @ 0x100809540 // > @ 0x100809d50 // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall GameObject::setVisible(GameObject *a1, bool a2) { _BOOL8 v2; // x19 __int64 v4; // x8 cocos2d::CCParticleSystemQuad *m_particle; // x0 cocos2d::CCSprite *m_glowSprite; // x0 bool v7; // w8 cocos2d::CCSprite *m_colorSprite; // x0 v2 = a2; if ( !a1->m_hasParticles || ((unsigned int (__fastcall *)(GameObject *))a1->isVisible)(a1) == a2 ) { LABEL_15: cocos2d::CCSprite::setVisible(a1, v2); m_glowSprite = a1->m_glowSprite; if ( !m_glowSprite ) goto LABEL_21; if ( v2 ) goto LABEL_17; LABEL_19: v7 = 0; goto LABEL_20; } if ( v2 ) { if ( a1->m_particle ) goto LABEL_8; v4 = 1384; } else { v4 = 1392; } (*(void (__fastcall **)(GameObject *))((char *)&a1->copyWithZone + v4))(a1); LABEL_8: m_particle = a1->m_particle; if ( !m_particle ) goto LABEL_15; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _BOOL8))m_particle->setVisible)(m_particle, v2); if ( !v2 ) { cocos2d::CCParticleSystem::stopSystem(a1->m_particle); cocos2d::CCSprite::setVisible(a1, 0); m_glowSprite = a1->m_glowSprite; if ( !m_glowSprite ) goto LABEL_21; goto LABEL_19; } if ( a1->m_objectID != 2065 || (((__int64 (__fastcall *)(GameObject *))a1->getHasSyncedAnimation)(a1) & 1) == 0 ) cocos2d::CCParticleSystem::resetSystem(a1->m_particle); ((void (__fastcall *)(GameObject *))a1->particleWasActivated)(a1); cocos2d::CCSprite::setVisible(a1, 1); m_glowSprite = a1->m_glowSprite; if ( m_glowSprite ) { LABEL_17: v7 = !a1->m_hasNoGlow; LABEL_20: ((void (__fastcall *)(cocos2d::CCSprite *, bool))m_glowSprite->setVisible)(m_glowSprite, v7); } LABEL_21: m_colorSprite = a1->m_colorSprite; if ( m_colorSprite ) ((void (__fastcall *)(cocos2d::CCSprite *, _BOOL8))m_colorSprite->setVisible)(m_colorSprite, v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source