1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-26 06:07:45 +00:00

Handle missing game installs gracefully like before

This commit is contained in:
Joshua Goins 2022-09-07 23:59:55 -04:00
parent f1b7890e88
commit 9c02ea2157

View file

@ -467,11 +467,15 @@ void LauncherCore::readGameVersion() {
profile->gameData = physis_gamedata_initialize((profile->gamePath + "/game").toStdString().c_str());
profile->bootData = physis_bootdata_initialize((profile->gamePath + "/boot").toStdString().c_str());
profile->repositories = physis_gamedata_get_repositories(profile->gameData);
if(profile->bootData != nullptr) {
profile->bootVersion = physis_bootdata_get_version(profile->bootData);
}
if(profile->gameData != nullptr) {
profile->repositories = physis_gamedata_get_repositories(profile->gameData);
readGameData(*profile);
}
}
}
LauncherCore::LauncherCore(bool isSteam)