Main update loop when the game has finished loading.
| 285 | /// Main update loop when the game has finished loading. |
| 286 | /// </summary> |
| 287 | void HandlePostGameLoadedMods(GameLoopState& state) |
| 288 | { |
| 289 | GameState::currentMenu = GameState::GetCurrentMenu(); // This loads without checking if memory is safe... This can cause crashes if used when GameLoaded is false. |
| 290 | |
| 291 | HandleExternalMonitor(state); |
| 292 | HandleMicrophoneVolumeOverride(); |
| 293 | HandleAudioBackgroundToggle(); |
| 294 | HandleTwoRTCBypassToggle(); |
| 295 | HandleNonStopPlayTimer(); |
| 296 | HandleLinearRiffRepeaterToggle(); |
| 297 | HandleMidiDeviceScanning(); |
| 298 | |
| 299 | GameState::LessonMode = GameState::Menus::IsInLessonModes(); |
| 300 | |
| 301 | if (GameState::IsInSong()) { |
| 302 | HandleInSongState(state); |
| 303 | } |
| 304 | else { |
| 305 | HandleInMenuState(state); |
| 306 | } |
| 307 | |
| 308 | HandleAlwaysOnMods(state); |
| 309 | HandleRainbowEffects(); |
| 310 | } |
| 311 | |
| 312 | /// <summary> |
| 313 | /// Handles all state updates when the player is in menus. |
no test coverage detected