yuzu qt: Remove global system instances from config, WaitTree, main

This commit is contained in:
lat9nq 2021-09-02 21:40:55 -04:00 committed by Morph
parent d40819cfb1
commit 3aec34df0a
69 changed files with 687 additions and 635 deletions

View file

@ -54,7 +54,8 @@ QString GetTranslatedRowTextName(size_t index) {
}
} // Anonymous namespace
ConfigureUi::ConfigureUi(QWidget* parent) : QWidget(parent), ui(new Ui::ConfigureUi) {
ConfigureUi::ConfigureUi(Core::System& system_, QWidget* parent)
: QWidget(parent), ui(new Ui::ConfigureUi), system{system_} {
ui->setupUi(this);
InitializeLanguageComboBox();
@ -116,7 +117,7 @@ void ConfigureUi::ApplyConfiguration() {
UISettings::values.enable_screenshot_save_as = ui->enable_screenshot_save_as->isChecked();
Common::FS::SetYuzuPath(Common::FS::YuzuPath::ScreenshotsDir,
ui->screenshot_path_edit->text().toStdString());
Core::System::GetInstance().ApplySettings();
system.ApplySettings();
}
void ConfigureUi::RequestGameListUpdate() {