mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-09-08 13:11:02 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f1e5532cde |
@@ -858,7 +858,7 @@ struct Values {
|
|||||||
SwitchableSetting<std::string> program_args{linkage,
|
SwitchableSetting<std::string> program_args{linkage,
|
||||||
std::string(),
|
std::string(),
|
||||||
"program_args",
|
"program_args",
|
||||||
Category::System,
|
Category::Debugging,
|
||||||
Specialization::Default,
|
Specialization::Default,
|
||||||
true, // save_ - persist in config file
|
true, // save_ - persist in config file
|
||||||
false}; // runtime_modifiable_ - startup-only
|
false}; // runtime_modifiable_ - startup-only
|
||||||
@@ -904,7 +904,7 @@ struct Values {
|
|||||||
0,
|
0,
|
||||||
65535,
|
65535,
|
||||||
"debug_knobs",
|
"debug_knobs",
|
||||||
Category::System,
|
Category::Debugging,
|
||||||
Specialization::Countable,
|
Specialization::Countable,
|
||||||
true,
|
true,
|
||||||
true};
|
true};
|
||||||
|
|||||||
@@ -299,12 +299,17 @@ void Config::ReadDataStorageValues() {
|
|||||||
void Config::ReadDebuggingValues() {
|
void Config::ReadDebuggingValues() {
|
||||||
BeginGroup(Settings::TranslateCategory(Settings::Category::Debugging));
|
BeginGroup(Settings::TranslateCategory(Settings::Category::Debugging));
|
||||||
|
|
||||||
// Intentionally not using the QT default setting as this is intended to be changed in the ini
|
if (global) {
|
||||||
Settings::values.record_frame_times =
|
// Intentionally not using the QT default setting as this is intended to be changed in the ini
|
||||||
ReadBooleanSetting(std::string("record_frame_times"), std::make_optional(false));
|
Settings::values.record_frame_times =
|
||||||
|
ReadBooleanSetting(std::string("record_frame_times"), std::make_optional(false));
|
||||||
|
|
||||||
ReadCategory(Settings::Category::Debugging);
|
ReadCategory(Settings::Category::Debugging);
|
||||||
ReadCategory(Settings::Category::DebuggingGraphics);
|
ReadCategory(Settings::Category::DebuggingGraphics);
|
||||||
|
} else {
|
||||||
|
ReadSettingGeneric(&Settings::values.program_args);
|
||||||
|
ReadSettingGeneric(&Settings::values.debug_knobs);
|
||||||
|
}
|
||||||
|
|
||||||
EndGroup();
|
EndGroup();
|
||||||
}
|
}
|
||||||
@@ -415,12 +420,12 @@ void Config::ReadLibraryAppletValues() {
|
|||||||
void Config::ReadValues() {
|
void Config::ReadValues() {
|
||||||
if (global) {
|
if (global) {
|
||||||
ReadDataStorageValues();
|
ReadDataStorageValues();
|
||||||
ReadDebuggingValues();
|
|
||||||
ReadDisabledAddOnValues();
|
ReadDisabledAddOnValues();
|
||||||
ReadServiceValues();
|
ReadServiceValues();
|
||||||
ReadWebServiceValues();
|
ReadWebServiceValues();
|
||||||
ReadMiscellaneousValues();
|
ReadMiscellaneousValues();
|
||||||
}
|
}
|
||||||
|
ReadDebuggingValues();
|
||||||
ReadLibraryAppletValues();
|
ReadLibraryAppletValues();
|
||||||
ReadNetworkValues();
|
ReadNetworkValues();
|
||||||
ReadControlValues();
|
ReadControlValues();
|
||||||
@@ -511,13 +516,13 @@ void Config::SaveValues() {
|
|||||||
if (global) {
|
if (global) {
|
||||||
LOG_DEBUG(Config, "Saving global generic configuration values");
|
LOG_DEBUG(Config, "Saving global generic configuration values");
|
||||||
SaveDataStorageValues();
|
SaveDataStorageValues();
|
||||||
SaveDebuggingValues();
|
|
||||||
SaveDisabledAddOnValues();
|
SaveDisabledAddOnValues();
|
||||||
SaveWebServiceValues();
|
SaveWebServiceValues();
|
||||||
SaveMiscellaneousValues();
|
SaveMiscellaneousValues();
|
||||||
} else {
|
} else {
|
||||||
LOG_DEBUG(Config, "Saving only generic configuration values");
|
LOG_DEBUG(Config, "Saving only generic configuration values");
|
||||||
}
|
}
|
||||||
|
SaveDebuggingValues();
|
||||||
SaveLibraryAppletValues();
|
SaveLibraryAppletValues();
|
||||||
SaveNetworkValues();
|
SaveNetworkValues();
|
||||||
SaveControlValues();
|
SaveControlValues();
|
||||||
@@ -600,11 +605,16 @@ void Config::SaveDataStorageValues() {
|
|||||||
void Config::SaveDebuggingValues() {
|
void Config::SaveDebuggingValues() {
|
||||||
BeginGroup(Settings::TranslateCategory(Settings::Category::Debugging));
|
BeginGroup(Settings::TranslateCategory(Settings::Category::Debugging));
|
||||||
|
|
||||||
// Intentionally not using the QT default setting as this is intended to be changed in the ini
|
if (global) {
|
||||||
WriteBooleanSetting(std::string("record_frame_times"), Settings::values.record_frame_times);
|
// Intentionally not using the QT default setting as this is intended to be changed in the ini
|
||||||
|
WriteBooleanSetting(std::string("record_frame_times"), Settings::values.record_frame_times);
|
||||||
|
|
||||||
WriteCategory(Settings::Category::Debugging);
|
WriteCategory(Settings::Category::Debugging);
|
||||||
WriteCategory(Settings::Category::DebuggingGraphics);
|
WriteCategory(Settings::Category::DebuggingGraphics);
|
||||||
|
} else {
|
||||||
|
WriteSettingGeneric(&Settings::values.program_args);
|
||||||
|
WriteSettingGeneric(&Settings::values.debug_knobs);
|
||||||
|
}
|
||||||
|
|
||||||
EndGroup();
|
EndGroup();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user