Fix renderer not deinitializing when no systems are found (affects RPi).

This commit is contained in:
Aloshi 2014-05-14 18:02:32 -05:00
parent 654b93dd94
commit fd2281afff

View file

@ -165,6 +165,8 @@ int main(int argc, char* argv[])
if(!SystemData::loadConfig())
{
LOG(LogError) << "Error parsing system config file!";
if(!scrape_cmdline)
Renderer::deinit();
return 1;
}
@ -172,6 +174,8 @@ int main(int argc, char* argv[])
if(SystemData::sSystemVector.size() == 0)
{
LOG(LogError) << "No systems found! Does at least one system have a game present? (check that extensions match!)\n(Also, make sure you've updated your es_systems.cfg for XML!)";
if(!scrape_cmdline)
Renderer::deinit();
return 1;
}