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:
parent
f1b7890e88
commit
9c02ea2157
1 changed files with 7 additions and 3 deletions
|
@ -467,10 +467,14 @@ void LauncherCore::readGameVersion() {
|
||||||
profile->gameData = physis_gamedata_initialize((profile->gamePath + "/game").toStdString().c_str());
|
profile->gameData = physis_gamedata_initialize((profile->gamePath + "/game").toStdString().c_str());
|
||||||
profile->bootData = physis_bootdata_initialize((profile->gamePath + "/boot").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);
|
profile->bootVersion = physis_bootdata_get_version(profile->bootData);
|
||||||
|
}
|
||||||
|
|
||||||
readGameData(*profile);
|
if(profile->gameData != nullptr) {
|
||||||
|
profile->repositories = physis_gamedata_get_repositories(profile->gameData);
|
||||||
|
readGameData(*profile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue