summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MenuBar.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2021-12-30 15:47:40 -0500
committerGitHub <noreply@github.com>2021-12-30 15:47:40 -0500
commit533116093e7bd22d3d59ef193d79ae34bfb7e99a (patch)
tree8be67da93a2635e3c0435e2a58e0ba9a2d223806 /Source/Core/DolphinQt/MenuBar.cpp
parent1112b2a19e3421cb90364769754570c44f81d1ab (diff)
parentaa437d9805b2f1c810d117788be3aaac1259f788 (diff)
Merge pull request #10323 from AdmiralCurtiss/config-port-movie
Config: Port Movie settings to new config system.
Diffstat (limited to 'Source/Core/DolphinQt/MenuBar.cpp')
-rw-r--r--Source/Core/DolphinQt/MenuBar.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp
index c3d303044c..6776731980 100644
--- a/Source/Core/DolphinQt/MenuBar.cpp
+++ b/Source/Core/DolphinQt/MenuBar.cpp
@@ -746,15 +746,15 @@ void MenuBar::AddMovieMenu()
auto* pause_at_end = movie_menu->addAction(tr("Pause at End of Movie"));
pause_at_end->setCheckable(true);
- pause_at_end->setChecked(SConfig::GetInstance().m_PauseMovie);
+ pause_at_end->setChecked(Config::Get(Config::MAIN_MOVIE_PAUSE_MOVIE));
connect(pause_at_end, &QAction::toggled,
- [](bool value) { SConfig::GetInstance().m_PauseMovie = value; });
+ [](bool value) { Config::SetBaseOrCurrent(Config::MAIN_MOVIE_PAUSE_MOVIE, value); });
auto* rerecord_counter = movie_menu->addAction(tr("Show Rerecord Counter"));
rerecord_counter->setCheckable(true);
- rerecord_counter->setChecked(SConfig::GetInstance().m_ShowRerecord);
+ rerecord_counter->setChecked(Config::Get(Config::MAIN_MOVIE_SHOW_RERECORD));
connect(rerecord_counter, &QAction::toggled,
- [](bool value) { SConfig::GetInstance().m_ShowRerecord = value; });
+ [](bool value) { Config::SetBaseOrCurrent(Config::MAIN_MOVIE_SHOW_RERECORD, value); });
auto* lag_counter = movie_menu->addAction(tr("Show Lag Counter"));
lag_counter->setCheckable(true);
@@ -770,23 +770,24 @@ void MenuBar::AddMovieMenu()
auto* input_display = movie_menu->addAction(tr("Show Input Display"));
input_display->setCheckable(true);
- input_display->setChecked(SConfig::GetInstance().m_ShowInputDisplay);
- connect(input_display, &QAction::toggled,
- [](bool value) { SConfig::GetInstance().m_ShowInputDisplay = value; });
+ input_display->setChecked(Config::Get(Config::MAIN_MOVIE_SHOW_INPUT_DISPLAY));
+ connect(input_display, &QAction::toggled, [](bool value) {
+ Config::SetBaseOrCurrent(Config::MAIN_MOVIE_SHOW_INPUT_DISPLAY, value);
+ });
auto* system_clock = movie_menu->addAction(tr("Show System Clock"));
system_clock->setCheckable(true);
- system_clock->setChecked(SConfig::GetInstance().m_ShowRTC);
+ system_clock->setChecked(Config::Get(Config::MAIN_MOVIE_SHOW_RTC));
connect(system_clock, &QAction::toggled,
- [](bool value) { SConfig::GetInstance().m_ShowRTC = value; });
+ [](bool value) { Config::SetBaseOrCurrent(Config::MAIN_MOVIE_SHOW_RTC, value); });
movie_menu->addSeparator();
auto* dump_frames = movie_menu->addAction(tr("Dump Frames"));
dump_frames->setCheckable(true);
- dump_frames->setChecked(SConfig::GetInstance().m_DumpFrames);
+ dump_frames->setChecked(Config::Get(Config::MAIN_MOVIE_DUMP_FRAMES));
connect(dump_frames, &QAction::toggled,
- [](bool value) { SConfig::GetInstance().m_DumpFrames = value; });
+ [](bool value) { Config::SetBaseOrCurrent(Config::MAIN_MOVIE_DUMP_FRAMES, value); });
auto* dump_audio = movie_menu->addAction(tr("Dump Audio"));
dump_audio->setCheckable(true);