summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/MainWindow.cpp
diff options
context:
space:
mode:
authorLeo Lam <leolino.lam@gmail.com>2017-07-04 13:45:21 +0200
committerGitHub <noreply@github.com>2017-07-04 13:45:21 +0200
commitaa1d750f30f94e2c80ecc3e8ad9cc865e2076b78 (patch)
tree9ac2c5fde8d776f61920b356c959c1ee181bfdba /Source/Core/DolphinQt2/MainWindow.cpp
parent365892c61c7eb90feb636cbdbf3ecf23895521bf (diff)
parentd0fdb9f1491db121d37a7a807293c84f32adbad3 (diff)
Merge pull request #5664 from ligfx/removesettings
DolphinQt2: replace Settings with SConfig where possible
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 d314ac2abf..26f5fa9a82 100644
--- a/Source/Core/DolphinQt2/MainWindow.cpp
+++ b/Source/Core/DolphinQt2/MainWindow.cpp
@@ -294,7 +294,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);
@@ -318,7 +318,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
@@ -429,8 +429,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;
@@ -441,13 +440,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();
}
}