Skip to content

Commit

Permalink
v1.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Jun 29, 2024
1 parent ac74bdb commit 233d427
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.2.6)
project(FakeRate VERSION 1.2.7)

add_library(${PROJECT_NAME} SHARED
src/FakeRate.cpp
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Fake Rate Changelog
## v1.2.7 (2024-06-29)
- Fixed a bug that caused the game to crash when a difficulty face in the difficulty selection popup was clicked with More Difficulties uninstalled or disabled (again)

## v1.2.6 (2024-06-29)
- Fixed a bug that caused the More Difficulties difficulty face to be offset in the level info page

Expand Down
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"win": "2.206",
"mac": "2.206"
},
"version": "v1.2.6",
"version": "v1.2.7",
"id": "hiimjustin000.fake_rate",
"name": "Fake Rate",
"developer": "hiimjustin000",
Expand Down
3 changes: 2 additions & 1 deletion src/FREditPopup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@ void FRSetDifficultyPopup::createDifficultyToggle(CCMenu* menu, int difficulty,
FakeRate::toggle(sender->getNormalImage(), true);
m_selected = sender;
});
auto isToggled = difficulty == m_difficulty && (!Loader::get()->isModLoaded("uproxide.more_difficulties") || moreDifficultiesOverride == m_moreDifficultiesOverride);
auto isToggled = (moreDifficultiesOverride > 0 && moreDifficultiesOverride == m_moreDifficultiesOverride) ||
(m_moreDifficultiesOverride <= 0 && m_difficulty == difficulty);
FakeRate::toggle(toggle->getNormalImage(), isToggled);
m_selected = isToggled ? toggle : m_selected;
menu->addChild(toggle);
Expand Down

0 comments on commit 233d427

Please sign in to comment.