mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Added error if $HOME/.es_systems.cfg exists, but contains no systems.
This commit is contained in:
parent
6c5edd3284
commit
b2d59d93e3
|
@ -46,6 +46,12 @@ int main()
|
||||||
}else{
|
}else{
|
||||||
SystemData::loadConfig();
|
SystemData::loadConfig();
|
||||||
|
|
||||||
|
if(SystemData::sSystemVector.size() == 0)
|
||||||
|
{
|
||||||
|
std::cerr << "A system config file in $HOME/.es_systems.cfg was found, but contained no systems.\n";
|
||||||
|
std::cerr << "You should probably go read that, or delete it.\n";
|
||||||
|
running = false;
|
||||||
|
}else{
|
||||||
if(boost::filesystem::exists(InputManager::getConfigPath()))
|
if(boost::filesystem::exists(InputManager::getConfigPath()))
|
||||||
{
|
{
|
||||||
InputManager::loadConfig();
|
InputManager::loadConfig();
|
||||||
|
@ -60,6 +66,7 @@ int main()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
while(running)
|
while(running)
|
||||||
|
|
Loading…
Reference in a new issue