| 653 | } |
| 654 | |
| 655 | std::optional<QString> GameSettings::selectedProfileName() const |
| 656 | { |
| 657 | if (auto v = getOptional<QByteArray>(m_Settings, "General", "selected_profile")) { |
| 658 | return QString::fromUtf8(*v); |
| 659 | } |
| 660 | |
| 661 | return {}; |
| 662 | } |
| 663 | |
| 664 | void GameSettings::setSelectedProfileName(const QString& name) |
| 665 | { |