mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-27 00:25:38 +00:00
Fix renderer not deinitializing when no systems are found (affects RPi).
This commit is contained in:
parent
654b93dd94
commit
fd2281afff
|
@ -165,6 +165,8 @@ int main(int argc, char* argv[])
|
||||||
if(!SystemData::loadConfig())
|
if(!SystemData::loadConfig())
|
||||||
{
|
{
|
||||||
LOG(LogError) << "Error parsing system config file!";
|
LOG(LogError) << "Error parsing system config file!";
|
||||||
|
if(!scrape_cmdline)
|
||||||
|
Renderer::deinit();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,6 +174,8 @@ int main(int argc, char* argv[])
|
||||||
if(SystemData::sSystemVector.size() == 0)
|
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!)";
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue