From 76ea278567fa1a60364a20412d349ecd27076fd8 Mon Sep 17 00:00:00 2001 From: Justin Pridgen Date: Sun, 11 Aug 2024 21:02:38 -0400 Subject: [PATCH] how did i not see that --- CMakeLists.txt | 2 +- changelog.md | 3 +++ mod.json | 2 +- src/FREditPopup.cpp | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dda6e53..3c737ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64") set(CMAKE_CXX_VISIBILITY_PRESET hidden) -project(FakeRate VERSION 1.3.6) +project(FakeRate VERSION 1.3.7) add_library(${PROJECT_NAME} SHARED src/FakeRate.cpp diff --git a/changelog.md b/changelog.md index 7e4a2cf..0f4da30 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,7 @@ # Fake Rate Changelog +## v1.3.7 (2024-08-11) +- Fixed a bug where the game would crash with More Difficulties disabled + ## v1.3.6 (2024-08-10) - Fixed a bug where More Difficulties difficulties would not display ever diff --git a/mod.json b/mod.json index f41b684..a403bf8 100644 --- a/mod.json +++ b/mod.json @@ -5,7 +5,7 @@ "win": "2.206", "mac": "2.206" }, - "version": "v1.3.6", + "version": "v1.3.7", "id": "hiimjustin000.fake_rate", "name": "Fake Rate", "developer": "hiimjustin000", diff --git a/src/FREditPopup.cpp b/src/FREditPopup.cpp index 68f7bac..9f29705 100644 --- a/src/FREditPopup.cpp +++ b/src/FREditPopup.cpp @@ -217,7 +217,7 @@ void FREditPopup::updateLabels() { fmt::format("itzkiba.grandpa_demon/GrD_demon{}_text.png", m_grandpaDemonOverride - 1).c_str())); m_grdSprite->setPosition(m_difficultySprite->getPosition()); m_grdSprite->setVisible(true); - m_mdSprite->setVisible(false); + if (m_mdSprite) m_mdSprite->setVisible(false); m_grdInfinity->setPosition(m_difficultySprite->getPosition() + CCPoint { -0.4f, 14.0f }); m_grdInfinity->setVisible(m_grandpaDemonOverride == 5); m_difficultySprite->setOpacity(0); @@ -230,7 +230,7 @@ void FREditPopup::updateLabels() { fmt::format("hiimjustin000.demons_in_between/DIB_{:02d}_btn2_001.png", m_demonsInBetweenOverride).c_str())); m_dibSprite->setPosition(m_difficultySprite->getPosition() + FakeRate::getDIBOffset(m_demonsInBetweenOverride, GJDifficultyName::Long)); m_dibSprite->setVisible(true); - m_mdSprite->setVisible(false); + if (m_mdSprite) m_mdSprite->setVisible(false); m_difficultySprite->setOpacity(0); } else m_dibSprite->setVisible(false);