mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-05 06:47:53 +00:00
35 lines
902 B
C++
35 lines
902 B
C++
// Copyright 2016 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "citra_qt/config.h"
|
|
#include "citra_qt/configure_dialog.h"
|
|
#include "ui_configure.h"
|
|
|
|
|
|
#include "core/settings.h"
|
|
|
|
ConfigureDialog::ConfigureDialog(QWidget *parent, bool running) :
|
|
QDialog(parent),
|
|
ui(new Ui::ConfigureDialog),
|
|
emulation_running(running)
|
|
{
|
|
ui->setupUi(this);
|
|
this->setConfiguration();
|
|
}
|
|
|
|
ConfigureDialog::~ConfigureDialog() {
|
|
}
|
|
|
|
void ConfigureDialog::setConfiguration() {
|
|
// System tab needs set manually
|
|
// depending on whether emulation is running
|
|
ui->systemTab->setConfiguration(emulation_running);
|
|
}
|
|
|
|
void ConfigureDialog::applyConfiguration() {
|
|
ui->generalTab->applyConfiguration();
|
|
ui->systemTab->applyConfiguration();
|
|
ui->audioTab->applyConfiguration();
|
|
ui->debugTab->applyConfiguration();
|
|
}
|