From 9de0b319acb3a5578bc36c620c2e158b9d6f5761 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 18 Jul 2024 14:01:32 -0400 Subject: [PATCH] Don't check for frontier url unless the launcher exists This fixes a crash when trying to create a brand new profile --- launcher/src/profile.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/src/profile.cpp b/launcher/src/profile.cpp index 1a0d73a..25db98d 100644 --- a/launcher/src/profile.cpp +++ b/launcher/src/profile.cpp @@ -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(); }