Skip to content

Commit

Permalink
merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
theyareonit committed Sep 14, 2024
2 parents 6dece71 + 3132edf commit 0ab75bb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <Geode/modify/PlayerObject.hpp>
#include <Geode/modify/EndLevelLayer.hpp>
#include <Geode/modify/CreatorLayer.hpp>
#include <Geode/modify/GJGameLevel.hpp>

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

Expand Down Expand Up @@ -400,6 +401,18 @@ class $modify(CreatorLayer) {
}
};

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);
}
};


Patch* patch;

void toggleMod(bool disable) {
Expand Down Expand Up @@ -499,4 +512,4 @@ HANDLE gdMutex;
}

if (!isLinux) std::thread(inputThread).detach();
}
}

0 comments on commit 0ab75bb

Please sign in to comment.