Skip to content

Commit

Permalink
Doing some changes that @Prevter requested
Browse files Browse the repository at this point in the history
NOTE: is you're reading this, this is unfinished, I'm just doing it in different commits to avoid building errors, and to track down the cause easier
  • Loading branch information
Rustring authored Aug 9, 2024
1 parent 1fb47cb commit e9173e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hacks/Player/SolidWaveTrail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <modules/hack/hack.hpp>
#include <modules/config/config.hpp>

#include <Geode/Geode.hpp>
#include <Geode/modify/CCDrawNode.hpp>
#include <Geode/modify/HardStreak.hpp>

Expand All @@ -23,8 +22,8 @@ namespace eclipse::hacks::Player {

REGISTER_HACK(SolidWaveTrail)

class $modify(cocos2d::CCDrawNode) { // The actual hack code
bool drawPolygon(cocos2d::CCPoint *p0, unsigned int p1, const cocos2d::ccColor4F &p2, float p3, const cocos2d::ccColor4F &p4) {
class $modify(SolidWaveTrailCCDNHook) { // The actual hack code
bool drawPolygon(cCCPoint *p0, unsigned int p1, const ccColor4F &p2, float p3, const ccColor4F &p4) {
if (!config::get<bool>("player.solidwavetrail", true))
return CCDrawNode::drawPolygon(p0,p1,p2,p3,p4);
if (p2.r == 1.F && p2.g == 1.F && p2.b == 1.F && p2.a != 1.F)
Expand Down

0 comments on commit e9173e4

Please sign in to comment.