MCPcopy Create free account
hub / github.com/Lovrom8/RSMods / HandleInSongVisualMods

Function HandleInSongVisualMods

DLL/ModManager.cpp:651–672  ·  view source on GitHub ↗

Manages visual mod states when entering a song.

Source from the content-addressed store, hash-verified

649 /// Manages visual mod states when entering a song.
650 /// </summary>
651 void HandleInSongVisualMods(GameLoopState& state) {
652 if (Settings::ReturnSettingValue("RemoveHeadstockEnabled") == "on" &&
653 Settings::ReturnSettingValue("RemoveHeadstockWhen") == "song") {
654 D3DHooks::RemoveHeadstockInThisMenu = true;
655 }
656
657 if (Settings::ReturnSettingValue("ToggleLoftEnabled") == "on" &&
658 Settings::ReturnSettingValue("ToggleLoftWhen") == "song") {
659 if (!state.loftOff) {
660 Loft::ToggleLoft();
661 }
662 state.loftOff = true;
663 }
664
665 if (Settings::ReturnSettingValue("RemoveSkylineEnabled") == "on" &&
666 Settings::ReturnSettingValue("ToggleSkylineWhen") == "song") {
667 if (!D3DHooks::SkylineOff) {
668 D3DHooks::toggleSkyline = true;
669 }
670 D3DHooks::DrawSkylineInMenu = false;
671 }
672 }
673
674 /// <summary>
675 /// Handles MIDI auto-tuning when entering a song.

Callers 1

HandleInSongStateFunction · 0.85

Calls 1

ToggleLoftFunction · 0.85

Tested by

no test coverage detected