Loads a specific user profile by name.
| 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. |
no test coverage detected