Skip to content

Commit

Permalink
Update NoParticles.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Aug 7, 2024
1 parent 9422535 commit eacb4c1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Hacks/NoParticles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@ using namespace geode::prelude;

Module* part = nullptr;

#ifdef GEODE_IS_IOS

class $modify (CCParticleSystem)
{
virtual void update(float dt)
{
this->setScale(0);
}

QOLMOD_MOD_HOOK_ALL("no-particles")
};

#else

void myParticleUpdate(CCParticleSystem* ins, float dt)
{
ins->update(dt);
Expand All @@ -32,4 +46,6 @@ void myParticleUpdate(CCParticleSystem* ins, float dt)
});
}

#endif

#endif

0 comments on commit eacb4c1

Please sign in to comment.