Skip to content

Commit

Permalink
v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjasmine00 committed Jun 27, 2024
1 parent 20c79a8 commit 53c8db9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 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.2)
project(FakeRate VERSION 1.2.3)

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.3 (2024-06-27)
- 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

## v1.2.2 (2024-06-24)
- Fixed a bug where removing the fake rate would display the wrong difficulty face with More Difficulties enabled

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

Expand Down

0 comments on commit 53c8db9

Please sign in to comment.