From b45f6331b670f338f6e6dea5119601c3d5f20fd2 Mon Sep 17 00:00:00 2001 From: Explodingbill Date: Wed, 24 Jul 2024 16:35:27 +1000 Subject: [PATCH] update --- changelog.md | 5 +++++ mod.json | 2 +- src/Hacks/PracticeAlert.cpp | 18 ++++++------------ src/Labels/Labels.h | 2 +- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/changelog.md b/changelog.md index 6f543b3..fbb053f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,8 @@ +# 1.5.1 + +- Fixed Globed already loaded level bug +- Fixed not being able to exit practice mode with Comfirm Practice enabled + # 1.5.0 - Fixed Show Hitboxes Colours not loading correctly diff --git a/mod.json b/mod.json index 0550a5e..d3229a3 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { "geode": "3.3.0", - "version": "v1.5.0", + "version": "v1.5.1", "gd": { "win": "2.206", "android": "2.206" diff --git a/src/Hacks/PracticeAlert.cpp b/src/Hacks/PracticeAlert.cpp index 578d916..1e0dc8b 100644 --- a/src/Hacks/PracticeAlert.cpp +++ b/src/Hacks/PracticeAlert.cpp @@ -25,11 +25,8 @@ class $modify (PauseLayer) std::string("Are you sure you want to\n") + std::string(PlayLayer::get()->m_isPracticeMode ? "exit" : "enter") + std::string(" practice mode?"), "Cancel", "Practice", [this, sender](FLAlertLayer* tis, bool btn2) { - log::info("click practice"); - - if (btn2) { - log::info("right btn"); - + if (btn2) + { this->m_fields->v = true; this->onPracticeMode(sender); @@ -51,14 +48,11 @@ class $modify (PauseLayer) geode::createQuickPopup( "Practice Mode", - std::string("Are you sure you want to\n") + std::string(PlayLayer::get()->m_isPracticeMode ? "exit" : "enter") + std::string(" practice mode?"), - "Cancel", "Practice", + "Are you sure you want to\nexit practice mode", + "Cancel", "Exit", [this, sender](FLAlertLayer* tis, bool btn2) { - log::info("click practice"); - - if (btn2) { - log::info("right btn"); - + if (btn2) + { this->m_fields->v = true; this->onPracticeMode(sender); diff --git a/src/Labels/Labels.h b/src/Labels/Labels.h index 0e091ae..335b422 100644 --- a/src/Labels/Labels.h +++ b/src/Labels/Labels.h @@ -84,7 +84,7 @@ class StatusNode : public CCNode std::vector cps; int totalClicks = 0; - Ref bestRunPlayLayer = nullptr; + BestPlayLayer* bestRunPlayLayer = nullptr; std::string formatTime(float time) { // Convert float time to milliseconds