Fixed a crash on startup if no games were found.

This commit is contained in:
Leon Styhre 2023-01-22 21:04:24 +01:00
parent e44c18bc1b
commit 4ee3d91bf4

View file

@ -1122,7 +1122,8 @@ void ViewController::preload()
getGamelistView(*it)->preloadGamelist(); getGamelistView(*it)->preloadGamelist();
} }
ThemeData::setThemeTransitions(); if (SystemData::sSystemVector.size() > 0)
ThemeData::setThemeTransitions();
// Load navigation sounds, either from the theme if it supports it, or otherwise from // Load navigation sounds, either from the theme if it supports it, or otherwise from
// the bundled fallback sound files. // the bundled fallback sound files.