Detects and attempts to enable extended range mode for appropriate songs.
| 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 | } |