EgtExecutor 1.8d2 :

- adattamenti per nuovo parametro di SimStart.
This commit is contained in:
Dario Sassi
2017-04-21 09:44:54 +00:00
parent bbf5db64e2
commit 7bf984db01
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -2216,12 +2216,12 @@ ExeIsMachiningEmpty( void)
// Simulazione
//-----------------------------------------------------------------------------
bool
ExeSimStart( void)
ExeSimStart( bool bFirst)
{
IMachMgr* pMachMgr = GetCurrMachMgr() ;
VERIFY_MACHMGR( pMachMgr, false)
// avvio la simulazione della macchinata corrente
return pMachMgr->SimStart() ;
return pMachMgr->SimStart( bFirst) ;
}
//-----------------------------------------------------------------------------
BIN
View File
Binary file not shown.
+4 -2
View File
@@ -2390,10 +2390,12 @@ LuaIsMachiningEmpty( lua_State* L)
static int
LuaSimStart( lua_State* L)
{
// nessun parametro
// nessuno o 1 parametro : [bStart]
bool bStart = true ;
LuaGetParam( L, 1, bStart) ;
LuaClearStack( L) ;
// avvio la simulazione
bool bOk = ExeSimStart() ;
bool bOk = ExeSimStart( bStart) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;