remove Command="%function" syntax from XML. Use Lua directly.
This commit is contained in:
@@ -583,12 +583,7 @@ namespace
|
|||||||
RString sExpression;
|
RString sExpression;
|
||||||
pValue->GetValue( sExpression );
|
pValue->GetValue( sExpression );
|
||||||
|
|
||||||
if( EndsWith(sName, "Command") && sExpression.size() > 0 && sExpression[0] == '%' )
|
if( EndsWith(sName, "Command") )
|
||||||
{
|
|
||||||
sExpression.erase( 0, 1 );
|
|
||||||
LuaHelpers::RunExpression( L, sExpression, sFile );
|
|
||||||
}
|
|
||||||
else if( EndsWith(sName, "Command") && (sExpression.size() == 0 || sExpression[0] != '%') )
|
|
||||||
{
|
{
|
||||||
LuaHelpers::ParseCommandList( L, sExpression, sFile );
|
LuaHelpers::ParseCommandList( L, sExpression, sFile );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user