Skip to content

Commit 78a1000

Browse files
committed
test hooking a different function
1 parent 1fed5db commit 78a1000

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/PlayLayer.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
#define manager Manager::getSharedInstance()
1010

1111
class $modify(MyPlayLayer, PlayLayer) {
12-
static void onModify(auto& self) {
13-
if (Loader::get()->isModLoaded("gdsrwave.jfp")) (void) self.setHookPriorityBeforePost("PlayLayer::updateProgressbar", "gdsrwave.jfp");
14-
}
1512
static std::string grabRandomQuote(std::vector<std::string> vector = manager->quotes) {
1613
if (vector.empty()) return "";
1714
static std::mt19937_64 engine(std::random_device{}());
@@ -41,8 +38,8 @@ class $modify(MyPlayLayer, PlayLayer) {
4138
PlayLayer::resetLevelFromStart();
4239
Manager::getSharedInstance()->lastDeathPercent = -10.f;
4340
}
44-
void updateProgressbar() {
45-
PlayLayer::updateProgressbar();
41+
void updateInfoLabel() {
42+
PlayLayer::updateInfoLabel();
4643
if (!getModBool("enabled") || m_level->isPlatformer() || !m_player1->m_isDead || m_isPlatformer) return;
4744
CCNode* newBestNodeProbably = nullptr;
4845
bool hasOrbsLabel = false;

0 commit comments

Comments
 (0)