EgtExecutor 1.8l2 :
- aggiunte a Exe e Lua funzioni ExecTscLine, SetTscVar e GetTscVar.
This commit is contained in:
@@ -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) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user