]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/parser/interpreter.cpp
* all: added a INI file parser in skins2. For instance if the file
[vlc] / modules / gui / skins2 / parser / interpreter.cpp
index f00f0c70e2d97e4f87165097dccbf4565646e8d6..c6440f6c4a5e254dbbd45c8ad61c84a034d2ec86 100644 (file)
@@ -416,3 +416,17 @@ VarTree *Interpreter::getVarTree( const string &rName, Theme *pTheme )
     VarTree *pVar = (VarTree*)pVarManager->getVar( rName, "tree" );
     return pVar;
 }
+
+
+string Interpreter::getConstant( const string &rValue )
+{
+    // Check if the value is a registered constant
+    string val = VarManager::instance( getIntf() )->getConst( rValue );
+    if( val.empty() )
+    {
+        // if not, keep the value as is
+        val = rValue;
+    }
+    return val;
+}
+