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

Function HandleSpecificProfileLoad

DLL/ModManager.cpp:613–626  ·  view source on GitHub ↗

Loads a specific user profile by name.

Source from the content-addressed store, hash-verified

611 /// Loads a specific user profile by name.
612 /// </summary>
613 void HandleSpecificProfileLoad(GameLoopState& state) {
614 state.selectedUser = GameState::CurrentSelectedUser();
615
616 if (state.selectedUser == Settings::ReturnSettingValue("ProfileToLoad")) {
617 Keyboard::AutoEnterGame();
618 }
619 else if (state.selectedUser == "New profile") {
620 LOG_ERROR("(Auto Load) Invalid Profile Name" << std::endl); // Yeah, the profile they're looking for doesn't exist :(
621 state.forkInToasterNewProfile = true;
622 }
623 else { // Not the profile we're looking for. Move down 1.
624 Keyboard::PressDownArrowKey();
625 }
626 }
627
628 /// <summary>
629 /// Logs song ID for Riff Repeater > 100% functionality.

Callers 1

HandleAutoLoadProfileFunction · 0.85

Calls 2

AutoEnterGameFunction · 0.85
PressDownArrowKeyFunction · 0.85

Tested by

no test coverage detected