Skip to content

Commit

Permalink
god damn it
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Oct 8, 2024
1 parent e9009c2 commit 28f0638
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hooks/PlayerObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,13 @@ class $modify(MIPlayerObject, PlayerObject) {
if (m_regularTrail) m_regularTrail->removeFromParent();
m_regularTrail = CCMotionStreak::create(0.3f, 5.0f, 14.0f, { 255, 255, 255 },
CCTextureCache::get()->textureForKey(MoreIcons::TRAIL_TEXTURES[trailFile].c_str()));
#if defined(GEODE_IS_ANDROID32)
*reinterpret_cast<float*>(reinterpret_cast<uintptr_t>(m_regularTrail) + 0x168) = 50.0f;
#elif defined(GEODE_IS_ANDROID64)
*reinterpret_cast<float*>(reinterpret_cast<uintptr_t>(m_regularTrail) + 0x1c8) = 50.0f;
#else
m_regularTrail->setM_fMaxSeg(50.0f);
#endif
m_parentLayer->addChild(m_regularTrail, -2);
m_regularTrail->stopStroke();
}
Expand Down

0 comments on commit 28f0638

Please sign in to comment.