From 20c15e3155b3803cc8735b2b6d120969fe877128 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Mon, 13 May 2019 20:43:02 -0230 Subject: [PATCH] A little too eager with GUI_SUPPORT. --- src/emucore/OSystem.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/emucore/OSystem.cxx b/src/emucore/OSystem.cxx index 3841cd32c..3f94bc1d9 100644 --- a/src/emucore/OSystem.cxx +++ b/src/emucore/OSystem.cxx @@ -440,7 +440,6 @@ bool OSystem::hasConsole() const // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bool OSystem::createLauncher(const string& startdir) { -#ifdef GUI_SUPPORT closeConsole(); if(mySound) @@ -449,6 +448,7 @@ bool OSystem::createLauncher(const string& startdir) mySettings->setValue("tmpromdir", startdir); bool status = false; +#ifdef GUI_SUPPORT myEventHandler->reset(EventHandlerState::LAUNCHER); if(createFrameBuffer() == FBInitStatus::Success) { @@ -459,12 +459,10 @@ bool OSystem::createLauncher(const string& startdir) } else Logger::log("ERROR: Couldn't create launcher", 0); +#endif myLauncherUsed = myLauncherUsed || status; return status; -#else - return false; -#endif } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -