From 9c02ea21570116e5436b088ba2501a1af28fa841 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 7 Sep 2022 23:59:55 -0400 Subject: [PATCH] Handle missing game installs gracefully like before --- launcher/core/src/launchercore.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/launcher/core/src/launchercore.cpp b/launcher/core/src/launchercore.cpp index a9fbabe..d4460bf 100755 --- a/launcher/core/src/launchercore.cpp +++ b/launcher/core/src/launchercore.cpp @@ -467,10 +467,14 @@ 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); - profile->bootVersion = physis_bootdata_get_version(profile->bootData); + if(profile->bootData != nullptr) { + profile->bootVersion = physis_bootdata_get_version(profile->bootData); + } - readGameData(*profile); + if(profile->gameData != nullptr) { + profile->repositories = physis_gamedata_get_repositories(profile->gameData); + readGameData(*profile); + } } }