Skip to content

Commit

Permalink
address bugs found by ita_player, EmirNoob, and cyblancgd
Browse files Browse the repository at this point in the history
  • Loading branch information
RayDeeUx committed Oct 25, 2024
1 parent 12fba87 commit 25bcc77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v1.6.1
- Redo the button for blacklisting songs. Base icon shape provided by [FREAKINGDAN](https://github.com/freakingdan).
- Reduce confusion when copying song names/IDs while playing songs replaced by Jukebox/Auto Nong. {Reported by CyBlanc}
- Fix a bug where some songs downloaded from vanilla GD wouldn't be treated properly in Playlist Mode (potentially related to "No Songs Limit" being enabled). {Reported by ita_player}
- _Attempt_ to fix a bug where setting the music volume to 0 while on Playlist Mode would re-start a song while failing to end the original playback. {Reported by EmirNoob}
# v1.6.0
- Added "Copy Song ID" button (suggested by [Akashnil](https://discord.com/users/1068096599701590056)). <cy>Custom songs and NONGs will not return a song ID. They will fall back to its song name instead.</c> <cy>Button sprite adapted from [hiimjustin000](https://github.com/hiimjustin000) with permission.</c>
- Added "Blacklist Song" button (suggested by [AlphaQuata](https://discord.com/users/766876726566846505)). <cy>This button works regardless of your custom songs or Playlist Mode choices.</c> <cy>To manually un-blacklist a song, open `blacklist.txt` in the mod's config directory and edit it accordingly.</c>
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 @@
"android": "2.206",
"mac": "2.206"
},
"version": "v1.6.0",
"version": "v1.6.1",
"id": "elnexreal.menuloop_randomizer",
"name": "Menu Loop Randomizer",
"developers": ["RayDeeUx", "elnexreal"],
Expand Down
3 changes: 3 additions & 0 deletions src/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ void Utils::playlistModeNewSong() {
}
geode::log::info("attempting to hijack menuloop channel to use playlist mode");
auto fmod = FMODAudioEngine::sharedEngine();
float fmodIsCBrained;
FMOD_RESULT fmodResult = fmod->m_backgroundMusicChannel->getVolume(&fmodIsCBrained);
if (fmod->m_musicVolume <= 0.0f || fmod->getBackgroundMusicVolume() <= 0.0f || fmodIsCBrained <= 0.0f) return geode::log::info(" --- !!! MISSION ABORT !!! ---\n\none of the following was at or below 0.0f:\nfmod->m_musicVolume: {}\nfmod->getBackgroundMusicVolume(): {}\nfmodIsCBrained: {} (with fmodResult {})", fmod->m_musicVolume, fmod->getBackgroundMusicVolume(), fmodIsCBrained, fmodResult);
fmod->m_backgroundMusicChannel->stop();
SongManager::get().pickRandomSong();
geode::log::info("is it over?");
Expand Down

0 comments on commit 25bcc77

Please sign in to comment.