mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Re-added the old fix for the "automatically starting emulator" bug that
got removed during refactoring.
This commit is contained in:
parent
60adf05077
commit
c7a150046a
|
@ -147,6 +147,9 @@ int main(int argc, char* argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
//dont generate joystick events while we're loading (hopefully fixes "automatically started emulator" bug)
|
||||
SDL_JoystickEventState(SDL_DISABLE);
|
||||
|
||||
//try loading the system config file
|
||||
if(!SystemData::loadConfig(SystemData::getConfigPath(), true))
|
||||
{
|
||||
|
@ -169,6 +172,9 @@ int main(int argc, char* argv[])
|
|||
window.pushGui(new GuiDetectDevice(&window));
|
||||
}
|
||||
|
||||
//generate joystick events since we're done loading
|
||||
SDL_JoystickEventState(SDL_ENABLE);
|
||||
|
||||
bool sleeping = false;
|
||||
unsigned int timeSinceLastEvent = 0;
|
||||
int lastTime = 0;
|
||||
|
|
Loading…
Reference in a new issue