A little too eager with GUI_SUPPORT.

This commit is contained in:
Stephen Anthony 2019-05-13 20:43:02 -02:30
parent 1e8f62d677
commit a894496e77
1 changed files with 2 additions and 4 deletions

View File

@ -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
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -