EgtMachKernel :
- razionalizzazione della interfaccia di simulazione - correzione all'assegnamento di variabili lua durante la simulazione.
This commit is contained in:
+12
-4
@@ -22,16 +22,24 @@ using namespace std ;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::SimStart( bool bFirst)
|
||||
MachMgr::SimInit( void)
|
||||
{
|
||||
// alloco simulatore
|
||||
// alloco o rialloco il simulatore
|
||||
if ( m_pSimul != nullptr)
|
||||
delete m_pSimul ;
|
||||
m_pSimul = new( std::nothrow) Simulator ;
|
||||
if ( m_pSimul == nullptr)
|
||||
return false ;
|
||||
// lo inizializzo
|
||||
if ( ! m_pSimul->Init( this))
|
||||
return m_pSimul->Init( this) ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::SimStart( bool bFirst)
|
||||
{
|
||||
// verifico simulatore
|
||||
if ( m_pSimul == nullptr)
|
||||
return false ;
|
||||
// lo avvio
|
||||
return m_pSimul->Start( bFirst) ;
|
||||
@@ -129,7 +137,7 @@ MachMgr::SimGoHome( void)
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
MachMgr::SimStop( void)
|
||||
MachMgr::SimExit( void)
|
||||
{
|
||||
// verifico simulatore
|
||||
if ( m_pSimul == nullptr)
|
||||
|
||||
Reference in New Issue
Block a user