From e1ea6805a7d1f582c0028a86ca976d5b83548317 Mon Sep 17 00:00:00 2001 From: Starsam80 Date: Sun, 4 Jun 2017 14:43:41 -0600 Subject: [PATCH] Qt: Remove booting from the last path --- Source/Core/DolphinQt2/MainWindow.cpp | 7 +------ Source/Core/DolphinQt2/Settings.cpp | 10 ---------- Source/Core/DolphinQt2/Settings.h | 2 -- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/Source/Core/DolphinQt2/MainWindow.cpp b/Source/Core/DolphinQt2/MainWindow.cpp index c003f5be04..3382cee4c0 100644 --- a/Source/Core/DolphinQt2/MainWindow.cpp +++ b/Source/Core/DolphinQt2/MainWindow.cpp @@ -213,11 +213,7 @@ void MainWindow::Play() } else { - QString last_path = Settings().GetLastGame(); - if (!last_path.isEmpty() && QFile::exists(last_path)) - StartGame(last_path); - else - Open(); + Open(); } } } @@ -304,7 +300,6 @@ void MainWindow::StartGame(const QString& path) QMessageBox::critical(this, tr("Error"), tr("Failed to init core"), QMessageBox::Ok); return; } - Settings().SetLastGame(path); ShowRenderWidget(); emit EmulationStarted(); diff --git a/Source/Core/DolphinQt2/Settings.cpp b/Source/Core/DolphinQt2/Settings.cpp index 91e7c30968..248589a8a1 100644 --- a/Source/Core/DolphinQt2/Settings.cpp +++ b/Source/Core/DolphinQt2/Settings.cpp @@ -50,16 +50,6 @@ bool Settings::IsInDevelopmentWarningEnabled() const return value(QStringLiteral("ShowDevelopmentWarning"), true).toBool(); } -QString Settings::GetLastGame() const -{ - return value(QStringLiteral("GameList/LastGame")).toString(); -} - -void Settings::SetLastGame(const QString& path) -{ - setValue(QStringLiteral("GameList/LastGame"), path); -} - QStringList Settings::GetPaths() const { return value(QStringLiteral("GameList/Paths")).toStringList(); diff --git a/Source/Core/DolphinQt2/Settings.h b/Source/Core/DolphinQt2/Settings.h index dd94577f6d..fa01aac02d 100644 --- a/Source/Core/DolphinQt2/Settings.h +++ b/Source/Core/DolphinQt2/Settings.h @@ -33,8 +33,6 @@ public: bool IsInDevelopmentWarningEnabled() const; // GameList - QString GetLastGame() const; - void SetLastGame(const QString& path); QStringList GetPaths() const; void SetPaths(const QStringList& paths); void RemovePath(int i);