mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
refactoring and cleanup (#2)
* make hyperion to singelton. remove arguments for config and hyperion - both are gettable via Hyperion::getInstance * refactor hyperiond * remove qt4 comapt make zeroconf mandatory refactor hyperiond * xbmcchecker is now a singleton * cleanup in hyperiond zeroconf switchable between static and shared linking * fix xbmcchecker
This commit is contained in:
@@ -98,11 +98,7 @@ const std::list<ActiveEffectDefinition> &EffectEngine::getActiveEffects()
|
||||
|
||||
bool EffectEngine::loadEffectDefinition(const std::string &path, const std::string &effectConfigFile, EffectDefinition & effectDefinition)
|
||||
{
|
||||
#ifdef ENABLE_QT5
|
||||
std::string fileName = path + QDir::separator().toLatin1() + effectConfigFile;
|
||||
#else
|
||||
std::string fileName = path + QDir::separator().toAscii() + effectConfigFile;
|
||||
#endif
|
||||
std::ifstream file(fileName.c_str());
|
||||
|
||||
if (!file.is_open())
|
||||
@@ -137,11 +133,7 @@ bool EffectEngine::loadEffectDefinition(const std::string &path, const std::stri
|
||||
|
||||
// setup the definition
|
||||
effectDefinition.name = config["name"].asString();
|
||||
#ifdef ENABLE_QT5
|
||||
effectDefinition.script = path + QDir::separator().toLatin1() + config["script"].asString();
|
||||
#else
|
||||
effectDefinition.script = path + QDir::separator().toAscii() + config["script"].asString();
|
||||
#endif
|
||||
effectDefinition.args = config["args"];
|
||||
|
||||
// return succes //BLACKLIST OUTPUT TO LOG (Spam). This is more a effect development thing and the list gets longer and longer
|
||||
|
Reference in New Issue
Block a user