EgtMachKernel :

- razionalizzazione della interfaccia di simulazione
- correzione all'assegnamento di variabili lua durante la simulazione.
This commit is contained in:
Dario Sassi
2018-08-17 07:38:37 +00:00
parent fadc439156
commit bd74a8c9e7
6 changed files with 63 additions and 48 deletions
+12 -4
View File
@@ -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)