EgtMachKernel 2.6k4 :

- modifiche a SimulatorMP per file stima speciale con path specifica (EMT.MPSEST) per poter funzionare in modalità multitask.
This commit is contained in:
Dario Sassi
2024-11-18 10:56:43 +01:00
parent 3c241080d0
commit f095d6caaf
4 changed files with 22 additions and 6 deletions
+19 -5
View File
@@ -205,11 +205,24 @@ SimulatorMP::Start( bool bFirst)
if ( ! VerifySetup())
bOk = false ;
// Eseguo stima speciale
string sEstFile ;
ExeGetTempDir( sEstFile) ;
sEstFile += "\\Simul.sest" ;
EraseFile( sEstFile) ;
if ( ! m_pMchMgr->Estimate( sEstFile, ""))
string sTemp ;
if ( ExeGetCurrFilePath( sTemp)) {
// direttorio
string sDir = GetDirectory( sTemp) ;
ReplaceString( sDir, "/", "\\") ;
// nome
string sName = GetFileTitleEgt( sTemp) ;
// nome macchinata
string sMGrp = m_pMchMgr->GetMachGroupName( m_pMchMgr->GetCurrMachGroup()) ;
// path completa
m_sSpecEstim = sDir + "\\" + sName + "_" + sMGrp + ".sest" ;
}
else {
ExeGetTempDir( sTemp) ;
m_sSpecEstim = sTemp + "\\Simul.sest" ;
}
EraseFile( m_sSpecEstim) ;
if ( ! m_pMchMgr->Estimate( m_sSpecEstim, ""))
bOk = false ;
}
@@ -242,6 +255,7 @@ SimulatorMP::Start( bool bFirst)
m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_VER, GetEMkVer()) ;
m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_MACHNAME, m_pMachine->GetMachineName()) ;
m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_MPSIM, true) ;
m_pMachine->LuaSetGlobVar( GLOB_VAR + GVAR_MPSEST, m_sSpecEstim) ;
// Se appena entrati in simulazione
if ( m_nStatus == SIS_INITIALIZED) {