configuration_shared: Better use global text
Also adds trackers for graphics and advanced graphics
This commit is contained in:
parent
c9f93c05f7
commit
44b3183ec8
|
@ -124,3 +124,9 @@ void ConfigurationShared::InsertGlobalItem(QComboBox* combobox) {
|
||||||
combobox->insertItem(ConfigurationShared::USE_GLOBAL_INDEX, use_global_text);
|
combobox->insertItem(ConfigurationShared::USE_GLOBAL_INDEX, use_global_text);
|
||||||
combobox->insertSeparator(ConfigurationShared::USE_GLOBAL_SEPARATOR_INDEX);
|
combobox->insertSeparator(ConfigurationShared::USE_GLOBAL_SEPARATOR_INDEX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ConfigurationShared::InsertGlobalItem(QComboBox* combobox, const QString& global) {
|
||||||
|
const QString use_global_text = ConfigurePerGame::tr("Use global configuration (%1)").arg(global);
|
||||||
|
combobox->insertItem(ConfigurationShared::USE_GLOBAL_INDEX, use_global_text);
|
||||||
|
combobox->insertSeparator(ConfigurationShared::USE_GLOBAL_SEPARATOR_INDEX);
|
||||||
|
}
|
||||||
|
|
|
@ -27,6 +27,14 @@ struct Trackers {
|
||||||
CheckState use_multi_core;
|
CheckState use_multi_core;
|
||||||
|
|
||||||
CheckState enable_audio_stretching;
|
CheckState enable_audio_stretching;
|
||||||
|
|
||||||
|
CheckState use_disk_shader_cache;
|
||||||
|
CheckState use_asynchronous_gpu_emulation;
|
||||||
|
|
||||||
|
CheckState use_vsync;
|
||||||
|
CheckState use_assembly_shaders;
|
||||||
|
CheckState use_fast_gpu_time;
|
||||||
|
CheckState force_30fps_mode;
|
||||||
} extern trackers;
|
} extern trackers;
|
||||||
|
|
||||||
// Global-aware apply and set functions
|
// Global-aware apply and set functions
|
||||||
|
@ -52,5 +60,6 @@ void SetColoredTristate(QCheckBox* checkbox, const std::string& name, const Sett
|
||||||
ConfigurationShared::CheckState& tracker);
|
ConfigurationShared::CheckState& tracker);
|
||||||
|
|
||||||
void InsertGlobalItem(QComboBox* combobox);
|
void InsertGlobalItem(QComboBox* combobox);
|
||||||
|
void InsertGlobalItem(QComboBox* combobox, const QString& global);
|
||||||
|
|
||||||
} // namespace ConfigurationShared
|
} // namespace ConfigurationShared
|
||||||
|
|
Reference in New Issue