Skip to content

Commit

Permalink
Only save certain sliders: frame delay, vsync-offset, overclock and C…
Browse files Browse the repository at this point in the history
…RT geometry sliders.
  • Loading branch information
antonioginer committed Oct 25, 2023
1 parent 1add396 commit e51b424
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/frontend/mame/ui/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2479,6 +2479,12 @@ void mame_ui_manager::sliders_save(config_type cfg_type, util::xml::data_node *p
// save UI sliders
for (auto &slider : m_sliders)
{
if (slider->description.find("Frame Delay") == std::string::npos &&
slider->description.find("V-Sync Offset") == std::string::npos &&
slider->description.find("Overclock") == std::string::npos &&
slider->description.find("CRT") == std::string::npos)
continue;

int32_t curval = slider->update(&tempstring, SLIDER_NOCHANGE);
if (curval != slider->defval)
{
Expand Down

0 comments on commit e51b424

Please sign in to comment.