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:
parent
24b5af28f1
commit
9de0b319ac
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue