summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MainWindow.cpp
diff options
context:
space:
mode:
authorMichael Maltese <mchtly@gmail.com>2017-06-22 15:11:53 -0700
committerMichael Maltese <mchtly@gmail.com>2017-06-29 17:17:32 -0700
commitd0fdb9f1491db121d37a7a807293c84f32adbad3 (patch)
tree5d288988e78f49fca117c21d708e605c86c929b0 /Source/Core/DolphinQt2/MainWindow.cpp
parent898bbffaa7cd124801f4682270e1b8d38840dc24 (diff)
DolphinQt2: replace Settings with SConfig where possible
Changes: - `ShowDevelopmentWarning` is now under the '[Interface]' group in Dolphin.ini, with other interface-related settings. So, whoever uses DolphinQt will have to edit that manually again. Sorry! - Game search paths and the last file are now shared properly with DolphinWX - Qt-only preferences like "Preferred View: list/table" are now stored using the platform's native settings storage, rather than in UI.ini
Diffstat (limited to 'Source/Core/DolphinQt2/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt2/MainWindow.cpp11
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();
}
}