mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
Fixed a crash on startup if no games were found.
This commit is contained in:
parent
03c06bc306
commit
7e0df9063c
|
@ -150,7 +150,7 @@ void SystemView::update(int deltaTime)
|
||||||
|
|
||||||
void SystemView::render(const glm::mat4& parentTrans)
|
void SystemView::render(const glm::mat4& parentTrans)
|
||||||
{
|
{
|
||||||
if (mPrimary->getNumEntries() == 0)
|
if (mPrimary == nullptr)
|
||||||
return; // Nothing to render.
|
return; // Nothing to render.
|
||||||
|
|
||||||
bool fade {false};
|
bool fade {false};
|
||||||
|
@ -355,6 +355,9 @@ void SystemView::onCursorChanged(const CursorState& state)
|
||||||
|
|
||||||
void SystemView::populate()
|
void SystemView::populate()
|
||||||
{
|
{
|
||||||
|
if (SystemData::sSystemVector.size() == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
LOG(LogDebug) << "SystemView::populate(): Populating carousel";
|
LOG(LogDebug) << "SystemView::populate(): Populating carousel";
|
||||||
|
|
||||||
auto themeSets = ThemeData::getThemeSets();
|
auto themeSets = ThemeData::getThemeSets();
|
||||||
|
|
Loading…
Reference in a new issue