Skip to content

Commit

Permalink
Merge pull request #60 from acaruso-xx/master
Browse files Browse the repository at this point in the history
Flag leaderboard records when physics changes are made
  • Loading branch information
theyareonit authored Sep 4, 2024
2 parents 8c732c3 + 818a82d commit 3132edf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <Geode/modify/GJBaseGameLayer.hpp>
#include <Geode/modify/PlayerObject.hpp>
#include <Geode/modify/EndLevelLayer.hpp>
#include <Geode/modify/GJGameLevel.hpp>

#include <geode.custom-keybinds/include/Keybinds.hpp>

Expand Down Expand Up @@ -394,3 +395,14 @@ void toggleMod(bool disable) {

std::thread(inputThread).detach();
}

class $modify(GJGameLevel) {
void savePercentage(int percent, bool p1, int clicks, int attempts, bool valid) {
valid = (
Mod::get()->getSettingValue<bool>("soft-toggle") &&
!Mod::get()->getSettingValue<bool>("actual-delta")
);

GJGameLevel::savePercentage(percent, p1, clicks, attempts, valid);
}
};

0 comments on commit 3132edf

Please sign in to comment.