From 818a82d7406ba69ad5d97dac1809e897db896d25 Mon Sep 17 00:00:00 2001 From: Ashton Caruso Date: Wed, 4 Sep 2024 10:20:44 -0400 Subject: [PATCH] Flag leaderboard records when physics changes are made --- src/main.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index c86e43a..e054136 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include @@ -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("soft-toggle") && + !Mod::get()->getSettingValue("actual-delta") + ); + + GJGameLevel::savePercentage(percent, p1, clicks, attempts, valid); + } +};