mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-23 04:57:44 +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
|
// Extract frontier url if possible
|
||||||
const auto launcherPath = QString(gamePath() + QStringLiteral("/boot/ffxivlauncher64.exe"));
|
const auto launcherPath = QString(gamePath() + QStringLiteral("/boot/ffxivlauncher64.exe"));
|
||||||
|
if (QFile::exists(launcherPath)) {
|
||||||
m_frontierUrl = QString::fromUtf8(physis_extract_frontier_url(launcherPath.toStdString().c_str()));
|
m_frontierUrl = QString::fromUtf8(physis_extract_frontier_url(launcherPath.toStdString().c_str()));
|
||||||
|
}
|
||||||
|
|
||||||
Q_EMIT gameInstallChanged();
|
Q_EMIT gameInstallChanged();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue