summaryrefslogtreecommitdiff
path: root/src/citra_qt/main.cpp
diff options
context:
space:
mode:
authorGravatar LittleWhite2016-01-24 21:54:04 +0100
committerGravatar LittleWhite2016-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.gz
yuzu-3eb737a5f5b199fd3f9951a7060255f46011e9ff.tar.xz
yuzu-3eb737a5f5b199fd3f9951a7060255f46011e9ff.zip
Add more stuff to configure.
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)
194 194
195 show(); 195 show();
196 196
197 game_list->PopulateAsync(UISettings::values.gamedir_path, UISettings::values.gamedir_deepscan); 197 game_list->PopulateAsync(UISettings::values.gamedir, UISettings::values.gamedir_deepscan);
198 198
199 QStringList args = QApplication::arguments(); 199 QStringList args = QApplication::arguments();
200 if (args.length() >= 2) { 200 if (args.length() >= 2) {
@@ -416,7 +416,7 @@ void GMainWindow::OnMenuLoadSymbolMap() {
416void GMainWindow::OnMenuSelectGameListRoot() { 416void GMainWindow::OnMenuSelectGameListRoot() {
417 QString dir_path = QFileDialog::getExistingDirectory(this, tr("Select Directory")); 417 QString dir_path = QFileDialog::getExistingDirectory(this, tr("Select Directory"));
418 if (!dir_path.isEmpty()) { 418 if (!dir_path.isEmpty()) {
419 UISettings::values.gamedir_path = dir_path; 419 UISettings::values.gamedir = dir_path;
420 game_list->PopulateAsync(dir_path, UISettings::values.gamedir_deepscan); 420 game_list->PopulateAsync(dir_path, UISettings::values.gamedir_deepscan);
421 } 421 }
422} 422}
@@ -488,14 +488,15 @@ void GMainWindow::ToggleWindowMode() {
488void GMainWindow::OnConfigure() { 488void GMainWindow::OnConfigure() {
489 ConfigureDialog configureDialog(this); 489 ConfigureDialog configureDialog(this);
490 auto result = configureDialog.exec(); 490 auto result = configureDialog.exec();
491 if ( result == QDialog::Accepted) 491 if (result == QDialog::Accepted)
492 { 492 {
493 configureDialog.applyConfiguration(); 493 configureDialog.applyConfiguration();
494 config->Save();
494 } 495 }
495} 496}
496 497
497bool GMainWindow::ConfirmClose() { 498bool GMainWindow::ConfirmClose() {
498 if (emu_thread == nullptr || !confirm_before_closing) 499 if (emu_thread == nullptr || !UISettings::values.confirm_before_closing)
499 return true; 500 return true;
500 501
501 auto answer = QMessageBox::question(this, tr("Citra"), 502 auto answer = QMessageBox::question(this, tr("Citra"),