EgtExecutor 1.8l2 :

- aggiunte a Exe e Lua funzioni ExecTscLine, SetTscVar e GetTscVar.
This commit is contained in:
Dario Sassi
2017-12-12 07:34:08 +00:00
parent 026e9f5202
commit 1f1c589f47
3 changed files with 77 additions and 0 deletions
+23
View File
@@ -103,3 +103,26 @@ ExeTscExecLine( const string& sLine)
// eseguo il comando
return pTscExec->ExecLine( sLine) ;
}
//-----------------------------------------------------------------------------
bool
ExeTscSetVariable( const string& sName, int nVal)
{
ICmdParser* pTscExec = GetCurrTscExecutor() ;
VERIFY_TSCEXEC( pTscExec, false)
// eseguo il comando
if ( pTscExec->SetVariable( sName, nVal))
return true ;
else
return pTscExec->AddVariable( sName, nVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeTscGetVariable( const string& sName, int& nVal)
{
ICmdParser* pTscExec = GetCurrTscExecutor() ;
VERIFY_TSCEXEC( pTscExec, false)
// eseguo il comando
return pTscExec->GetVariable( sName, nVal) ;
}