// // PlayerObject::resetPlayerIcon from 0x3421bc to 0x3422e0 (292 bytes) // // 5 xrefs: // > PlayerObject::toggleSwingMode @ 0x346b2a // > PlayerObject::toggleSpiderMode @ 0x346d98 // > PlayerObject::toggleFlyMode @ 0x346fb8 // > PlayerObject::toggleBirdMode @ 0x3471ac // > PlayerObject::toggleDartMode @ 0x347332 // // 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::resetPlayerIcon(PlayerObject *a1) { cocos2d::CCParticleSystemQuad *m_trailingParticles; // r8 void (__fastcall *setStartColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // r9 cocos2d::CCParticleSystemQuad *v4; // r8 void (__fastcall *setEndColor)(cocos2d::CCParticleSystem *__hidden, const cocos2d::ccColor4F *); // r9 cocos2d::CCMotionStreak *m_shipStreak; // r0 _DWORD v7[4]; // [sp+4h] [bp-18h] BYREF PlayerObject::stopPlatformerJumpAnimation(a1); a1->m_width = 30.0; a1->m_height = 30.0; a1->m_unkAngle1 = 30.0; PlayerObject::runRotateAction(a1, 0, 5); ((void (__fastcall *)(cocos2d::CCSprite *, int))a1->m_iconSprite->setScale)(a1->m_iconSprite, 1065353216); a1->m_iconSprite->setPosition(a1->m_iconSprite, &stru_AC5C68); a1->m_vehicleSprite->setVisible(a1->m_vehicleSprite, 0); a1->m_birdVehicle->setVisible(a1->m_birdVehicle, 0); PlayerObject::updatePlayerGlow(a1); cocos2d::CCParticleSystem::stopSystem(a1->m_trailingParticles); cocos2d::CCParticleSystem::stopSystem(a1->m_shipClickParticles); cocos2d::CCParticleSystem::stopSystem(a1->m_vehicleGroundParticles); m_trailingParticles = a1->m_trailingParticles; setStartColor = m_trailingParticles->setStartColor; memset(v7, 0, sizeof(v7)); v7[3] = 1065353216; v7[0] = 1065353216; v7[1] = 1053345993; setStartColor(m_trailingParticles, (const cocos2d::ccColor4F *)v7); v4 = a1->m_trailingParticles; setEndColor = v4->setEndColor; memset(v7, 0, sizeof(v7)); v7[3] = 1065353216; v7[0] = 1065353216; setEndColor(v4, (const cocos2d::ccColor4F *)v7); ((void (*)(void))a1->m_regularTrail->setColor)(); PlayerObject::deactivateStreak(a1, 0); m_shipStreak = a1->m_shipStreak; if ( m_shipStreak ) m_shipStreak->setVisible(m_shipStreak, 0); PlayerObject::updatePlayerScale(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source