1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 20:47:45 +00:00

Don't check for frontier url unless the launcher exists

This fixes a crash when trying to create a brand new profile
This commit is contained in:
Joshua Goins 2024-07-18 14:01:32 -04:00
parent 24b5af28f1
commit 9de0b319ac

View file

@ -422,7 +422,9 @@ void Profile::readGameVersion()
// Extract frontier url if possible
const auto launcherPath = QString(gamePath() + QStringLiteral("/boot/ffxivlauncher64.exe"));
m_frontierUrl = QString::fromUtf8(physis_extract_frontier_url(launcherPath.toStdString().c_str()));
if (QFile::exists(launcherPath)) {
m_frontierUrl = QString::fromUtf8(physis_extract_frontier_url(launcherPath.toStdString().c_str()));
}
Q_EMIT gameInstallChanged();
}