aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_per_game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu/configuration/configure_per_game.cpp')
-rw-r--r--src/yuzu/configuration/configure_per_game.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/yuzu/configuration/configure_per_game.cpp b/src/yuzu/configuration/configure_per_game.cpp
index a7b7698f29..007d93c779 100644
--- a/src/yuzu/configuration/configure_per_game.cpp
+++ b/src/yuzu/configuration/configure_per_game.cpp
@@ -30,13 +30,9 @@
ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id, std::string_view file_name)
: QDialog(parent), ui(std::make_unique<Ui::ConfigurePerGame>()), title_id(title_id) {
- if (title_id == 0) {
- game_config = std::make_unique<Config>(Common::FS::GetFilename(file_name),
- Config::ConfigType::PerGameConfig);
- } else {
- game_config = std::make_unique<Config>(fmt::format("{:016X}", title_id),
- Config::ConfigType::PerGameConfig);
- }
+ const auto config_file_name =
+ title_id == 0 ? Common::FS::GetFilename(file_name) : fmt::format("{:016X}", title_id);
+ game_config = std::make_unique<Config>(config_file_name, Config::ConfigType::PerGameConfig);
Settings::SetConfiguringGlobal(false);