Remove Engine's has_gui option

This commit is contained in:
Lukas W
2015-01-07 00:22:40 +01:00
parent 748cccd266
commit e0dbfa696e
4 changed files with 17 additions and 18 deletions

View File

@@ -38,8 +38,9 @@
#include "Song.h"
#include "BandLimitedWave.h"
#include "GuiApplication.h"
bool Engine::s_hasGUI = true;
bool Engine::s_suppressMessages = false;
float Engine::s_framesPerTick;
Mixer* Engine::s_mixer = NULL;
@@ -54,10 +55,8 @@ QMap<QString, QString> Engine::s_pluginFileHandling;
void Engine::init( const bool _has_gui )
void Engine::init()
{
s_hasGUI = _has_gui;
// generate (load from file) bandlimited wavetables
BandLimitedWave::generateWaves();
@@ -109,6 +108,11 @@ void Engine::destroy()
delete ConfigManager::inst();
}
bool Engine::hasGUI()
{
return gui != nullptr;
}