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

Function HandleExtendedRangeInSong

DLL/ModManager.cpp:701–714  ·  view source on GitHub ↗

Detects and attempts to enable extended range mode for appropriate songs.

Source from the content-addressed store, hash-verified

699 /// Detects and attempts to enable extended range mode for appropriate songs.
700 /// </summary>
701 void HandleExtendedRangeInSong(const GameLoopState& state) {
702 if (!ERMode::AttemptedERInThisSong) {
703 if (!state.skipERSleep) { // Tuning takes a second, or so, to get set by the game. We use this to make sure we have the right tuning numbers. Otherwise, we would never get ER mode to turn on properly.
704 Sleep(1500);
705 }
706 ERMode::UseERExclusivelyInThisSong = SongTuning::IsExtendedRangeSong();
707 ERMode::UseEROrColorsInThisSong = (Settings::ReturnSettingValue("ExtendedRangeEnabled") == "on" &&
708 ERMode::UseERExclusivelyInThisSong) ||
709 Settings::GetModSetting("CustomStringColors") == 2 ||
710 (Settings::ReturnSettingValue("SeparateNoteColors") == "on" &&
711 Settings::GetModSetting("SeparateNoteColorsMode") != 1);
712 ERMode::AttemptedERInThisSong = true;
713 }
714 }
715}

Callers 1

HandleInSongStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected