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.
This commit is contained in:
lat9nq
2020-07-02 10:32:14 -04:00
parent 588209e514
commit c21d62afc5

View File

@@ -1039,19 +1039,15 @@ void GMainWindow::BootGame(const QString& filename) {
LOG_INFO(Frontend, "yuzu starting..."); LOG_INFO(Frontend, "yuzu starting...");
StoreRecentFile(filename); // Put the filename on top of the list 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 v_file = Core::GetGameFileFromPath(vfs, filename.toUtf8().constData());
const auto loader = Loader::GetLoader(v_file); const auto loader = Loader::GetLoader(v_file);
if (loader == nullptr || loader->ReadProgramId(title_id) != Loader::ResultStatus::Success) { if (!(loader == nullptr || loader->ReadProgramId(title_id) != Loader::ResultStatus::Success)) {
QMessageBox::information(this, tr("Properties"), // Load per game settings
tr("The game properties could not be loaded.")); Config per_game_config(fmt::format("{:016X}", title_id) + ".ini", false);
return;
} }
// Load per game settings
Config per_game_config(fmt::format("{:016X}", title_id) + ".ini", false);
UpdateStatusButtons(); UpdateStatusButtons();
Settings::LogSettings(); Settings::LogSettings();