diff options
Diffstat (limited to 'src/frontend_common/config.cpp')
| -rw-r--r-- | src/frontend_common/config.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index af6b10db6..95f8c8c36 100644 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp | |||
| @@ -138,6 +138,7 @@ void Config::ReadPlayerValues(const std::size_t player_index) { | |||
| 138 | if (profile_name.empty()) { | 138 | if (profile_name.empty()) { |
| 139 | // Use the global input config | 139 | // Use the global input config |
| 140 | player = Settings::values.players.GetValue(true)[player_index]; | 140 | player = Settings::values.players.GetValue(true)[player_index]; |
| 141 | player.profile_name = ""; | ||
| 141 | return; | 142 | return; |
| 142 | } | 143 | } |
| 143 | player.profile_name = profile_name; | 144 | player.profile_name = profile_name; |
| @@ -401,6 +402,14 @@ void Config::ReadNetworkValues() { | |||
| 401 | EndGroup(); | 402 | EndGroup(); |
| 402 | } | 403 | } |
| 403 | 404 | ||
| 405 | void Config::ReadLibraryAppletValues() { | ||
| 406 | BeginGroup(Settings::TranslateCategory(Settings::Category::LibraryApplet)); | ||
| 407 | |||
| 408 | ReadCategory(Settings::Category::LibraryApplet); | ||
| 409 | |||
| 410 | EndGroup(); | ||
| 411 | } | ||
| 412 | |||
| 404 | void Config::ReadValues() { | 413 | void Config::ReadValues() { |
| 405 | if (global) { | 414 | if (global) { |
| 406 | ReadDataStorageValues(); | 415 | ReadDataStorageValues(); |
| @@ -410,6 +419,7 @@ void Config::ReadValues() { | |||
| 410 | ReadServiceValues(); | 419 | ReadServiceValues(); |
| 411 | ReadWebServiceValues(); | 420 | ReadWebServiceValues(); |
| 412 | ReadMiscellaneousValues(); | 421 | ReadMiscellaneousValues(); |
| 422 | ReadLibraryAppletValues(); | ||
| 413 | } | 423 | } |
| 414 | ReadControlValues(); | 424 | ReadControlValues(); |
| 415 | ReadCoreValues(); | 425 | ReadCoreValues(); |
| @@ -511,6 +521,7 @@ void Config::SaveValues() { | |||
| 511 | SaveNetworkValues(); | 521 | SaveNetworkValues(); |
| 512 | SaveWebServiceValues(); | 522 | SaveWebServiceValues(); |
| 513 | SaveMiscellaneousValues(); | 523 | SaveMiscellaneousValues(); |
| 524 | SaveLibraryAppletValues(); | ||
| 514 | } else { | 525 | } else { |
| 515 | LOG_DEBUG(Config, "Saving only generic configuration values"); | 526 | LOG_DEBUG(Config, "Saving only generic configuration values"); |
| 516 | } | 527 | } |
| @@ -691,6 +702,14 @@ void Config::SaveWebServiceValues() { | |||
| 691 | EndGroup(); | 702 | EndGroup(); |
| 692 | } | 703 | } |
| 693 | 704 | ||
| 705 | void Config::SaveLibraryAppletValues() { | ||
| 706 | BeginGroup(Settings::TranslateCategory(Settings::Category::LibraryApplet)); | ||
| 707 | |||
| 708 | WriteCategory(Settings::Category::LibraryApplet); | ||
| 709 | |||
| 710 | EndGroup(); | ||
| 711 | } | ||
| 712 | |||
| 694 | bool Config::ReadBooleanSetting(const std::string& key, const std::optional<bool> default_value) { | 713 | bool Config::ReadBooleanSetting(const std::string& key, const std::optional<bool> default_value) { |
| 695 | std::string full_key = GetFullKey(key, false); | 714 | std::string full_key = GetFullKey(key, false); |
| 696 | if (!default_value.has_value()) { | 715 | if (!default_value.has_value()) { |