diff options
| -rw-r--r-- | src/yuzu/configuration/configure_per_game.cpp | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/src/yuzu/configuration/configure_per_game.cpp b/src/yuzu/configuration/configure_per_game.cpp index 12699c126..f4cf25f05 100644 --- a/src/yuzu/configuration/configure_per_game.cpp +++ b/src/yuzu/configuration/configure_per_game.cpp | |||
| @@ -45,20 +45,21 @@ | |||
| 45 | ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id, const std::string& file_name, | 45 | ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id, const std::string& file_name, |
| 46 | Core::System& system_) | 46 | Core::System& system_) |
| 47 | : QDialog(parent), ui(std::make_unique<Ui::ConfigurePerGame>()), | 47 | : QDialog(parent), ui(std::make_unique<Ui::ConfigurePerGame>()), |
| 48 | title_id(title_id), system{system_}, addons_tab{std::make_unique<ConfigurePerGameAddons>( | 48 | title_id(title_id), system{system_} { |
| 49 | system_, this)}, | ||
| 50 | audio_tab{std::make_unique<ConfigureAudio>(system_, this)}, | ||
| 51 | cpu_tab{std::make_unique<ConfigureCpu>(system_, this)}, | ||
| 52 | general_tab{std::make_unique<ConfigureGeneral>(system_, this)}, | ||
| 53 | graphics_tab{std::make_unique<ConfigureGraphics>(system_, this)}, | ||
| 54 | graphics_advanced_tab{std::make_unique<ConfigureGraphicsAdvanced>(system_, this)}, | ||
| 55 | system_tab{std::make_unique<ConfigureSystem>(system_, this)} { | ||
| 56 | const auto file_path = std::filesystem::path(Common::FS::ToU8String(file_name)); | 49 | const auto file_path = std::filesystem::path(Common::FS::ToU8String(file_name)); |
| 57 | const auto config_file_name = title_id == 0 ? Common::FS::PathToUTF8String(file_path.filename()) | 50 | const auto config_file_name = title_id == 0 ? Common::FS::PathToUTF8String(file_path.filename()) |
| 58 | : fmt::format("{:016X}", title_id); | 51 | : fmt::format("{:016X}", title_id); |
| 59 | game_config = | 52 | game_config = |
| 60 | std::make_unique<Config>(system, config_file_name, Config::ConfigType::PerGameConfig); | 53 | std::make_unique<Config>(system, config_file_name, Config::ConfigType::PerGameConfig); |
| 61 | 54 | ||
| 55 | addons_tab = std::make_unique<ConfigurePerGameAddons>(system_, this); | ||
| 56 | audio_tab = std::make_unique<ConfigureAudio>(system_, this); | ||
| 57 | cpu_tab = std::make_unique<ConfigureCpu>(system_, this); | ||
| 58 | general_tab = std::make_unique<ConfigureGeneral>(system_, this); | ||
| 59 | graphics_tab = std::make_unique<ConfigureGraphics>(system_, this); | ||
| 60 | graphics_advanced_tab = std::make_unique<ConfigureGraphicsAdvanced>(system_, this); | ||
| 61 | system_tab = std::make_unique<ConfigureSystem>(system_, this); | ||
| 62 | |||
| 62 | ui->setupUi(this); | 63 | ui->setupUi(this); |
| 63 | 64 | ||
| 64 | ui->tabWidget->addTab(addons_tab.get(), tr("Add-Ons")); | 65 | ui->tabWidget->addTab(addons_tab.get(), tr("Add-Ons")); |
| @@ -187,11 +188,4 @@ void ConfigurePerGame::LoadConfiguration() { | |||
| 187 | 188 | ||
| 188 | const auto valueText = ReadableByteSize(file->GetSize()); | 189 | const auto valueText = ReadableByteSize(file->GetSize()); |
| 189 | ui->display_size->setText(valueText); | 190 | ui->display_size->setText(valueText); |
| 190 | |||
| 191 | general_tab->SetConfiguration(); | ||
| 192 | cpu_tab->SetConfiguration(); | ||
| 193 | system_tab->SetConfiguration(); | ||
| 194 | graphics_tab->SetConfiguration(); | ||
| 195 | graphics_advanced_tab->SetConfiguration(); | ||
| 196 | audio_tab->SetConfiguration(); | ||
| 197 | } | 191 | } |