From c21d62afc5c61e210ecb15255eee70103888cb72 Mon Sep 17 00:00:00 2001 From: lat9nq Date: Thu, 2 Jul 2020 10:32:14 -0400 Subject: [PATCH] main: load settings if the file has a title id In other words, don't exit if the loader has trouble getting a title id. --- src/yuzu/main.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index e7dd443863..b21d92b4f1 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1039,19 +1039,15 @@ void GMainWindow::BootGame(const QString& filename) { LOG_INFO(Frontend, "yuzu starting..."); StoreRecentFile(filename); // Put the filename on top of the list - u64 title_id; + u64 title_id{0Ul}; const auto v_file = Core::GetGameFileFromPath(vfs, filename.toUtf8().constData()); const auto loader = Loader::GetLoader(v_file); - if (loader == nullptr || loader->ReadProgramId(title_id) != Loader::ResultStatus::Success) { - QMessageBox::information(this, tr("Properties"), - tr("The game properties could not be loaded.")); - return; + if (!(loader == nullptr || loader->ReadProgramId(title_id) != Loader::ResultStatus::Success)) { + // Load per game settings + Config per_game_config(fmt::format("{:016X}", title_id) + ".ini", false); } - // Load per game settings - Config per_game_config(fmt::format("{:016X}", title_id) + ".ini", false); - UpdateStatusButtons(); Settings::LogSettings();