mirror of https://github.com/stella-emu/stella.git
Avoid crash if strict mode is enabled, console is reloaded and linking fails.
This commit is contained in:
parent
53d239c7e5
commit
7644ba6fa8
|
@ -1518,7 +1518,9 @@ void EventHandler::handleEvent(Event::Type event, Int32 value, bool repeated)
|
|||
return;
|
||||
|
||||
case Event::ReloadConsole:
|
||||
if(pressed && !repeated) myOSystem.reloadConsole(true);
|
||||
if(pressed && !repeated && !myOSystem.reloadConsole(true))
|
||||
setState(EventHandlerState::LAUNCHER);
|
||||
|
||||
return;
|
||||
|
||||
case Event::PreviousMultiCartRom:
|
||||
|
|
|
@ -967,6 +967,7 @@ void OSystem::mainLoop()
|
|||
const bool wasEmulation = myEventHandler->state() == EventHandlerState::EMULATION;
|
||||
|
||||
myEventHandler->poll(TimerManager::getTicks());
|
||||
|
||||
if(myQuitLoop) break; // Exit if the user wants to quit
|
||||
|
||||
if (!wasEmulation && myEventHandler->state() == EventHandlerState::EMULATION) {
|
||||
|
|
Loading…
Reference in New Issue