Skip to content

Commit

Permalink
Flag leaderboard records when physics changes are made
Browse files Browse the repository at this point in the history
  • Loading branch information
acaruso-xx committed Sep 4, 2024
1 parent 8c732c3 commit 818a82d
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 818a82d

Please sign in to comment.