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

Fix crash when game is not installed

This commit is contained in:
Joshua Goins 2022-05-29 23:40:50 -04:00
parent 21e272ab66
commit 83e53dcaa8

View file

@ -497,8 +497,7 @@ void LauncherCore::readWineInfo(ProfileSettings& profile) {
void LauncherCore::readGameVersion() {
for(auto& profile : profileSettings) {
profile->bootVersion = readVersion(profile->gamePath + "/boot/ffxivboot.ver");
profile->installedMaxExpansion = 0;
profile.bootVersion = readVersion(profile.gamePath + "/boot/ffxivboot.ver");
auto sqpackDirectories = QDir(profile->gamePath + "/game/sqpack/").entryList(QDir::Filter::Dirs | QDir::Filter::NoDotAndDotDot);
profile->gameVersions.resize(sqpackDirectories.size());