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

Function HandlePostGameLoadedMods

DLL/ModManager.cpp:287–310  ·  view source on GitHub ↗

Main update loop when the game has finished loading.

Source from the content-addressed store, hash-verified

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.

Callers 1

MainThreadFunction · 0.85

Calls 12

HandleExternalMonitorFunction · 0.85
HandleTwoRTCBypassToggleFunction · 0.85
HandleNonStopPlayTimerFunction · 0.85
HandleMidiDeviceScanningFunction · 0.85
IsInLessonModesFunction · 0.85
HandleInSongStateFunction · 0.85
HandleInMenuStateFunction · 0.85
HandleAlwaysOnModsFunction · 0.85
HandleRainbowEffectsFunction · 0.85

Tested by

no test coverage detected