mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 12:05:38 +00:00
Added error if $HOME/.es_systems.cfg exists, but contains no systems.
This commit is contained in:
parent
6c5edd3284
commit
b2d59d93e3
21
src/main.cpp
21
src/main.cpp
|
@ -46,17 +46,24 @@ int main()
|
|||
}else{
|
||||
SystemData::loadConfig();
|
||||
|
||||
if(boost::filesystem::exists(InputManager::getConfigPath()))
|
||||
if(SystemData::sSystemVector.size() == 0)
|
||||
{
|
||||
InputManager::loadConfig();
|
||||
new GuiGameList();
|
||||
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(SDL_NumJoysticks() > 0)
|
||||
if(boost::filesystem::exists(InputManager::getConfigPath()))
|
||||
{
|
||||
new GuiInputConfig();
|
||||
}else{
|
||||
std::cout << "Note - it looks like you have no joysticks connected.\n";
|
||||
InputManager::loadConfig();
|
||||
new GuiGameList();
|
||||
}else{
|
||||
if(SDL_NumJoysticks() > 0)
|
||||
{
|
||||
new GuiInputConfig();
|
||||
}else{
|
||||
std::cout << "Note - it looks like you have no joysticks connected.\n";
|
||||
new GuiGameList();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue