fix linux config values not saved

This commit is contained in:
flodavid 2024-01-02 19:58:25 +01:00
parent 148ad0cf0b
commit 68fe1e3476
2 changed files with 32 additions and 0 deletions

View file

@ -280,6 +280,16 @@ void Config::ReadDebuggingValues() {
EndGroup(); EndGroup();
} }
#ifdef __unix__
void Config::ReadLinuxValues() {
BeginGroup(Settings::TranslateCategory(Settings::Category::Linux));
ReadCategory(Settings::Category::Linux);
EndGroup();
}
#endif
void Config::ReadServiceValues() { void Config::ReadServiceValues() {
BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); BeginGroup(Settings::TranslateCategory(Settings::Category::Services));
@ -386,6 +396,9 @@ void Config::ReadValues() {
ReadControlValues(); ReadControlValues();
ReadCoreValues(); ReadCoreValues();
ReadCpuValues(); ReadCpuValues();
#ifdef __unix__
ReadLinuxValues();
#endif
ReadRendererValues(); ReadRendererValues();
ReadAudioValues(); ReadAudioValues();
ReadSystemValues(); ReadSystemValues();
@ -478,6 +491,9 @@ void Config::SaveValues() {
SaveControlValues(); SaveControlValues();
SaveCoreValues(); SaveCoreValues();
SaveCpuValues(); SaveCpuValues();
#ifdef __unix__
SaveLinuxValues();
#endif
SaveRendererValues(); SaveRendererValues();
SaveAudioValues(); SaveAudioValues();
SaveSystemValues(); SaveSystemValues();
@ -552,6 +568,16 @@ void Config::SaveDebuggingValues() {
EndGroup(); EndGroup();
} }
#ifdef __unix__
void Config::SaveLinuxValues() {
BeginGroup(Settings::TranslateCategory(Settings::Category::Linux));
WriteCategory(Settings::Category::Linux);
EndGroup();
}
#endif
void Config::SaveNetworkValues() { void Config::SaveNetworkValues() {
BeginGroup(Settings::TranslateCategory(Settings::Category::Services)); BeginGroup(Settings::TranslateCategory(Settings::Category::Services));

View file

@ -77,6 +77,9 @@ protected:
void ReadCoreValues(); void ReadCoreValues();
void ReadDataStorageValues(); void ReadDataStorageValues();
void ReadDebuggingValues(); void ReadDebuggingValues();
#ifdef __unix__
void ReadLinuxValues();
#endif
void ReadServiceValues(); void ReadServiceValues();
void ReadDisabledAddOnValues(); void ReadDisabledAddOnValues();
void ReadMiscellaneousValues(); void ReadMiscellaneousValues();
@ -108,6 +111,9 @@ protected:
void SaveCoreValues(); void SaveCoreValues();
void SaveDataStorageValues(); void SaveDataStorageValues();
void SaveDebuggingValues(); void SaveDebuggingValues();
#ifdef __unix__
void SaveLinuxValues();
#endif
void SaveNetworkValues(); void SaveNetworkValues();
void SaveDisabledAddOnValues(); void SaveDisabledAddOnValues();
void SaveMiscellaneousValues(); void SaveMiscellaneousValues();