diff --git a/CMakeLists.txt b/CMakeLists.txt index 24568e2..d6b5101 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.2.7) +project(FakeRate VERSION 1.2.8) add_library(${PROJECT_NAME} SHARED src/FakeRate.cpp diff --git a/changelog.md b/changelog.md index 98303f6..2a3cf23 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,7 @@ # Fake Rate Changelog +## v1.2.8 (2024-07-04) +- 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 (Somehow this bug keeps coming back) + ## 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) diff --git a/mod.json b/mod.json index 11dc4a7..04b08d7 100644 --- a/mod.json +++ b/mod.json @@ -5,7 +5,7 @@ "win": "2.206", "mac": "2.206" }, - "version": "v1.2.7", + "version": "v1.2.8", "id": "hiimjustin000.fake_rate", "name": "Fake Rate", "developer": "hiimjustin000", diff --git a/src/main.cpp b/src/main.cpp index 3ff4a51..035790b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -61,8 +61,8 @@ class $modify(FRLevelInfoLayer, LevelInfoLayer) { .stars = stars, .feature = m_level->m_featured > 1 ? m_level->m_isEpic + 1 : 0, .difficulty = FakeRate::getDifficultyFromLevel(m_level), - .moreDifficultiesOverride = stars == 4 || stars == 7 || stars == 9 ? stars : - stars == 0 && (starsRequested == 4 || starsRequested == 7 || starsRequested == 9) ? starsRequested : 0 + .moreDifficultiesOverride = Loader::get()->isModLoaded("uproxide.more_difficulties") ? stars == 4 || stars == 7 || stars == 9 ? stars : + stars == 0 && (starsRequested == 4 || starsRequested == 7 || starsRequested == 9) ? starsRequested : 0 : 0 }; }