diff options
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/MainWindow.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index da38a9dda0..24791b4252 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -295,7 +295,7 @@ void MainWindow::Play() } else { - QString default_path = Settings::Instance().GetDefaultGame(); + auto default_path = QString::fromStdString(SConfig::GetInstance().m_strDefaultISO); if (!default_path.isEmpty() && QFile::exists(default_path)) { StartGame(default_path); @@ -319,7 +319,7 @@ bool MainWindow::Stop() if (!Core::IsRunning()) return true; - if (Settings::Instance().GetConfirmStop()) + if (SConfig::GetInstance().bConfirmStop) { const Core::State state = Core::GetState(); // Set to false when Netplay is running as a CPU thread @@ -430,8 +430,7 @@ void MainWindow::StartGame(const QString& path) void MainWindow::ShowRenderWidget() { - auto& settings = Settings::Instance(); - if (settings.GetRenderToMain()) + if (SConfig::GetInstance().bRenderToMain) { // If we're rendering to main, add it to the stack and update our title when necessary. m_rendering_to_main = true; @@ -442,13 +441,13 @@ void MainWindow::ShowRenderWidget() { // Otherwise, just show it. m_rendering_to_main = false; - if (settings.GetFullScreen()) + if (SConfig::GetInstance().bFullscreen) { m_render_widget->showFullScreen(); } else { - m_render_widget->resize(settings.GetRenderWindowSize()); + m_render_widget->resize(640, 480); m_render_widget->showNormal(); } } |
