Fixed a crash when jumping directly to a specific game system on startup.

This commit is contained in:
Leon Styhre 2020-12-15 18:44:56 +01:00
parent 024e073e86
commit ed77c7a9aa

View file

@ -94,6 +94,11 @@ void ViewController::goToStart()
} }
} }
// If the system view does not exist, then create it. We do this here as it would
// otherwise not be done if jumping directly into a specific game system on startup.
if (!mSystemListView)
getSystemListView();
// If a specific system is requested, go directly to its game list. // If a specific system is requested, go directly to its game list.
auto requestedSystem = Settings::getInstance()->getString("StartupSystem"); auto requestedSystem = Settings::getInstance()->getString("StartupSystem");
if ("" != requestedSystem && "retropie" != requestedSystem) { if ("" != requestedSystem && "retropie" != requestedSystem) {