summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/main.cpp
diff options
context:
space:
mode:
authorLittleWhite <lw.demoscene@googlemail.com>2016-01-24 21:54:04 +0100
committerLittleWhite <lw.demoscene@googlemail.com>2016-03-22 21:53:43 +0100
commit3eb737a5f5b199fd3f9951a7060255f46011e9ff (patch)
treecc44971ba38dbb0a86929df09e7cd613e583e8a3 /src/citra_qt/main.cpp
parentWhole config is handled by Config class. (diff)
downloadyuzu-3eb737a5f5b199fd3f9951a7060255f46011e9ff.tar
yuzu-3eb737a5f5b199fd3f9951a7060255f46011e9ff.tar.gz
yuzu-3eb737a5f5b199fd3f9951a7060255f46011e9ff.tar.bz2
yuzu-3eb737a5f5b199fd3f9951a7060255f46011e9ff.tar.lz
yuzu-3eb737a5f5b199fd3f9951a7060255f46011e9ff.tar.xz
yuzu-3eb737a5f5b199fd3f9951a7060255f46011e9ff.tar.zst
yuzu-3eb737a5f5b199fd3f9951a7060255f46011e9ff.zip
Diffstat (limited to 'src/citra_qt/main.cpp')
-rw-r--r--src/citra_qt/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index 26904c71d..a81c6db3f 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -194,7 +194,7 @@ GMainWindow::GMainWindow() : config(new Config()), emu_thread(nullptr)
show();
- game_list->PopulateAsync(UISettings::values.gamedir_path, UISettings::values.gamedir_deepscan);
+ game_list->PopulateAsync(UISettings::values.gamedir, UISettings::values.gamedir_deepscan);
QStringList args = QApplication::arguments();
if (args.length() >= 2) {
@@ -416,7 +416,7 @@ void GMainWindow::OnMenuLoadSymbolMap() {
void GMainWindow::OnMenuSelectGameListRoot() {
QString dir_path = QFileDialog::getExistingDirectory(this, tr("Select Directory"));
if (!dir_path.isEmpty()) {
- UISettings::values.gamedir_path = dir_path;
+ UISettings::values.gamedir = dir_path;
game_list->PopulateAsync(dir_path, UISettings::values.gamedir_deepscan);
}
}
@@ -488,14 +488,15 @@ void GMainWindow::ToggleWindowMode() {
void GMainWindow::OnConfigure() {
ConfigureDialog configureDialog(this);
auto result = configureDialog.exec();
- if ( result == QDialog::Accepted)
+ if (result == QDialog::Accepted)
{
configureDialog.applyConfiguration();
+ config->Save();
}
}
bool GMainWindow::ConfirmClose() {
- if (emu_thread == nullptr || !confirm_before_closing)
+ if (emu_thread == nullptr || !UISettings::values.confirm_before_closing)
return true;
auto answer = QMessageBox::question(this, tr("Citra"),