Skip to content

Commit

Permalink
fix no particles so no crash
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSillyDoggo committed Jan 27, 2024
1 parent 08e2a2e commit 4ecf07a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Client/ClientSetup.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ class ClientUtils
//cosmetic->modules.push_back(new Module("Hide Endscreen BTN", "end-screen", "Adds an arrow to hide the end screen"));
cosmetic->modules.push_back(new Module("No Transition", "no-trans", "Disables the fade scene transitions"));
cosmetic->modules.push_back(new Module("No Player Rotation", "no-rot", "Disables rotation on players"));
#ifdef GEODE_IS_WINDOWS
cosmetic->modules.push_back(new Module("No Particles", "no-particles", "Disables particles, seems pretty obvious what this does imo"));
#endif
cosmetic->modules.push_back(new Module("No Shaders", "no-shaders", "Disables shaders, <cl>maybe read</c> the name"));
cosmetic->modules.push_back(new Module("No Death Effect", "no-death", "Disables the death effect on the player"));
//cosmetic->modules.push_back(new Module("No Player Rotation", "no-plr-rot", "Disables Player Rotation :3\nIt looks ugly imo but you do you"));
Expand Down
6 changes: 5 additions & 1 deletion src/Hacks/NoParticles.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#ifdef GEODE_IS_WINDOWS

#include <Geode/Geode.hpp>
#include <Geode/modify/CCParticleSystem.hpp>
#include <Geode/modify/CCParticleSystemQuad.hpp>
Expand Down Expand Up @@ -46,4 +48,6 @@ class $modify (CCParticleSystemQuad)

CCParticleSystemQuad::setTotalParticles(Client::GetModuleEnabled("no-particles") ? 0 : tp);
}
};
};

#endif

0 comments on commit 4ecf07a

Please sign in to comment.